Skip to content
Permalink
Browse files

Fix warning: loop variable ‘xyz’ of type ‘const string&’ {aka ‘const …

…std::__cxx11::basic_string<char>&’} binds to a temporary warning
  • Loading branch information
nyalldawson committed Mar 27, 2021
1 parent 99e18d8 commit 9d01cca0bddc979ac9b2b77fc0457d912e9b0834
Showing with 1 addition and 1 deletion.
  1. +1 −1 external/untwine/epf/Epf.cpp
@@ -207,7 +207,7 @@ PointCount Epf::createFileInfo(const StringList& input, StringList dimNames,
{
for (std::string& d : dimNames)
d = Utils::toupper(d);
for (const std::string& xyz : { "X", "Y", "Z" })
for (const std::string xyz : { "X", "Y", "Z" })
if (!Utils::contains(dimNames, xyz))
dimNames.push_back(xyz);
}

0 comments on commit 9d01cca

Please sign in to comment.