Use const reference to fix cppcheck error

This commit is contained in:
Ervin Hegedus 2025-07-15 09:39:43 +02:00
parent 254d11731f
commit 6637569d03
No known key found for this signature in database
GPG Key ID: 5FA5BC3F5EC41F61

View File

@ -277,7 +277,7 @@ inline std::string toupper(std::string str) { // cppcheck-suppress passedByValue
return toCaseHelper(str, ::toupper);
}
inline int parse_unsigned_int(std::string a, unsigned int *res) {
inline int parse_unsigned_int(const std::string &a, unsigned int *res) {
char *endptr = NULL;
errno = 0;