From 684909a69168a898f4609aa048c153f0c1a18eef Mon Sep 17 00:00:00 2001 From: Engin Manap Date: Sat, 9 Jul 2022 17:23:40 +0200 Subject: [PATCH] Fix comments on PR 1) Use default instead of empty destructor 2) Remove debug code --- code/AssetLib/Collada/ColladaParser.cpp | 6 +----- code/AssetLib/MMD/MMDPmxParser.h | 4 +--- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/code/AssetLib/Collada/ColladaParser.cpp b/code/AssetLib/Collada/ColladaParser.cpp index 25034defb..47d96ff94 100644 --- a/code/AssetLib/Collada/ColladaParser.cpp +++ b/code/AssetLib/Collada/ColladaParser.cpp @@ -1622,11 +1622,7 @@ void ColladaParser::ReadIndexData(XmlNode &node, Mesh &pMesh) { throw DeadlyImportError("Expected more values while reading contents."); } // 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 SkipSpacesAndLineEnd(&content); } diff --git a/code/AssetLib/MMD/MMDPmxParser.h b/code/AssetLib/MMD/MMDPmxParser.h index 4b3968dec..c9df37c68 100644 --- a/code/AssetLib/MMD/MMDPmxParser.h +++ b/code/AssetLib/MMD/MMDPmxParser.h @@ -358,9 +358,7 @@ namespace pmx public: void virtual Read(std::istream *stream, PmxSetting *setting) = 0; - virtual ~PmxMorphOffset() { - - } + virtual ~PmxMorphOffset() = default; }; class PmxMorphVertexOffset : public PmxMorphOffset