From 6637569d039162618b8af00471a9654fc2e19b14 Mon Sep 17 00:00:00 2001 From: Ervin Hegedus Date: Tue, 15 Jul 2025 09:39:43 +0200 Subject: [PATCH] Use const reference to fix cppcheck error --- src/utils/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/string.h b/src/utils/string.h index 79c888a2..8e5c57c9 100644 --- a/src/utils/string.h +++ b/src/utils/string.h @@ -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;