瀏覽代碼

Fix comments on PR
1) Use default instead of empty destructor
2) Remove debug code

Engin Manap 3 年之前
父節點
當前提交
684909a691
共有 2 個文件被更改,包括 2 次插入8 次删除
  1. 1 5
      code/AssetLib/Collada/ColladaParser.cpp
  2. 1 3
      code/AssetLib/MMD/MMDPmxParser.h

+ 1 - 5
code/AssetLib/Collada/ColladaParser.cpp

@@ -1622,11 +1622,7 @@ void ColladaParser::ReadIndexData(XmlNode &node, Mesh &pMesh) {
                             throw DeadlyImportError("Expected more values while reading <vcount> contents.");
                             throw DeadlyImportError("Expected more values while reading <vcount> contents.");
                         }
                         }
                         // read a number
                         // read a number
-                        size_t valueRead = (size_t)strtoul10(content, &content);
-                        if(valueRead == 0) {
-                            printf("wohoo");
-                        }
-                        vcount.push_back(valueRead);
+                        vcount.push_back((size_t)strtoul10(content, &content));
                         // skip whitespace after it
                         // skip whitespace after it
                         SkipSpacesAndLineEnd(&content);
                         SkipSpacesAndLineEnd(&content);
                     }
                     }

+ 1 - 3
code/AssetLib/MMD/MMDPmxParser.h

@@ -358,9 +358,7 @@ namespace pmx
 	public:
 	public:
 		void virtual Read(std::istream *stream, PmxSetting *setting) = 0;
 		void virtual Read(std::istream *stream, PmxSetting *setting) = 0;
 
 
-        virtual ~PmxMorphOffset() {
-
-        }
+        virtual ~PmxMorphOffset() = default;
 	};
 	};
 
 
 	class PmxMorphVertexOffset : public PmxMorphOffset
 	class PmxMorphVertexOffset : public PmxMorphOffset