Skip to content

Commit 6637569

Browse files
committed
Use const reference to fix cppcheck error
1 parent 254d117 commit 6637569

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/string.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ inline std::string toupper(std::string str) { // cppcheck-suppress passedByValue
277277
return toCaseHelper(str, ::toupper);
278278
}
279279

280-
inline int parse_unsigned_int(std::string a, unsigned int *res) {
280+
inline int parse_unsigned_int(const std::string &a, unsigned int *res) {
281281
char *endptr = NULL;
282282
errno = 0;
283283

0 commit comments

Comments
 (0)