refactor: String, pass stringToSizeType a const ref of the string we are to get the size of

This commit is contained in:
sithlord48
2025-07-11 12:41:40 -04:00
committed by Nick Bolton
parent 9db11a90eb
commit d9ec93e7ee
2 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ std::string sizeTypeToString(size_t n)
return ss.str();
}
size_t stringToSizeType(std::string string)
size_t stringToSizeType(const std::string &string)
{
std::istringstream iss(string);
size_t value;

View File

@ -52,7 +52,7 @@ std::string sizeTypeToString(size_t n);
/*!
Convert an a \c string to an size type
*/
size_t stringToSizeType(std::string string);
size_t stringToSizeType(const std::string &string);
//! Case-insensitive comparisons
/*!