Fix warning: loop variable ‘xyz’ of type ‘const string&’ {aka ‘const std::__cxx11::basic_string<char>&’} binds to a temporary warning

This commit is contained in:
Nyall Dawson 2021-03-27 08:52:59 +10:00
parent 99e18d87f5
commit 9d01cca0bd

View File

@ -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);
}