Skip to content

Commit

Permalink
Fix warning: loop variable ‘xyz’ of type ‘const string&’ {aka ‘const …
Browse files Browse the repository at this point in the history
…std::__cxx11::basic_string<char>&’} binds to a temporary warning
  • Loading branch information
nyalldawson committed Mar 27, 2021
1 parent 99e18d8 commit 9d01cca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion external/untwine/epf/Epf.cpp
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9d01cca

Please sign in to comment.