refactor: String, pass stringToSizeType a const ref of the string we are to get the size of
This commit is contained in:
parent
9db11a90eb
commit
d9ec93e7ee
2 changed files with 2 additions and 2 deletions
|
|
@ -145,7 +145,7 @@ std::string sizeTypeToString(size_t n)
|
||||||
return ss.str();
|
return ss.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t stringToSizeType(std::string string)
|
size_t stringToSizeType(const std::string &string)
|
||||||
{
|
{
|
||||||
std::istringstream iss(string);
|
std::istringstream iss(string);
|
||||||
size_t value;
|
size_t value;
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ std::string sizeTypeToString(size_t n);
|
||||||
/*!
|
/*!
|
||||||
Convert an a \c string to an size type
|
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
|
//! Case-insensitive comparisons
|
||||||
/*!
|
/*!
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue