Fix typo, fix GCC build

pull/2820/head
RichardTea 2020-01-02 13:02:40 +00:00
parent d11af753f2
commit ab50b5e181
2 changed files with 4 additions and 3 deletions

View File

@ -94,9 +94,10 @@ void ToCamelCase(std::string &text)
} }
else else
{ {
// Make lower case // Make next one lower case
(*it) = ToLower(*it);
++it; ++it;
if (it != text.end())
(*it) = ToLower(*it);
} }
} }
} }

View File

@ -138,7 +138,7 @@ TEST_F(ColladaExportLight, testExportLight)
aiString readModified; aiString readModified;
EXPECT_TRUE(imported->mMetaData->Get("Modified", readModified)) << "No modified metadata"; EXPECT_TRUE(imported->mMetaData->Get("Modified", readModified)) << "No modified metadata";
EXPECT_STRNE(origModified.C_Str(), readModified.C_Str()) << "Modified date did not change"; EXPECT_STRNE(origModified.C_Str(), readModified.C_Str()) << "Modified date did not change";
EXPECT_GT(readModified.length, 18) << "Modified date too short"; EXPECT_GT(readModified.length, ai_uint32(18)) << "Modified date too short";
// Lights // Lights
EXPECT_TRUE(imported->HasLights()); EXPECT_TRUE(imported->HasLights());