Minor style fixes

This commit is contained in:
Shikhar Bhardwaj
2017-07-11 03:00:58 +05:30
parent b78c6b4a10
commit cdad3b4b39
2 changed files with 2 additions and 3 deletions
-1
View File
@@ -158,7 +158,6 @@ void TestArmadilloSerialization(MatType& x)
BOOST_REQUIRE_SMALL(double(x(j, i)), 1e-8);
else
BOOST_REQUIRE_CLOSE(double(orig(j, i)), double(x(j, i)), 1e-8);
}
// Test all serialization strategies.
+2 -2
View File
@@ -52,10 +52,10 @@ inline std::string FilterFileName(const std::string& inputString)
{
// Take the last valid 32 characters for the filename.
std::string fileName;
for(auto it = inputString.rbegin(); it != inputString.rend() &&
for (auto it = inputString.rbegin(); it != inputString.rend() &&
fileName.size() != 32; ++it)
{
if(std::isalnum(*it))
if (std::isalnum(*it))
fileName.push_back(*it);
}