mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 13:26:01 +03:00
Use const reference to fix cppcheck error
This commit is contained in:
parent
254d11731f
commit
6637569d03
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user