Use std::string_view argument

fix-osga-rotate-wildly
Sam Hellawell 2 months ago
parent ae68f4600b
commit d5ca678efc

@ -15,9 +15,9 @@ namespace Misc::StringUtils
bool operator()(char x, char y) const { return toLower(x) < toLower(y); }
};
inline std::string underscoresToSpaces(const std::string& oldName)
inline std::string underscoresToSpaces(const std::string_view& oldName)
{
std::string newName = oldName;
std::string newName(oldName);
std::replace(newName.begin(), newName.end(), '_', ' ');
return newName;
}

Loading…
Cancel
Save