mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56: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);
|
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;
|
char *endptr = NULL;
|
||||||
errno = 0;
|
errno = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user