mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-16 17:41:52 +03:00
Address some constParameter complaints from cppcheck
This commit is contained in:
@@ -608,7 +608,7 @@ class Variables : public std::vector<Variable *> {
|
||||
public:
|
||||
bool contains(Variable *v) {
|
||||
return std::find_if(begin(), end(),
|
||||
[v](Variable *m) -> bool { return *v == *m; }) != end();
|
||||
[v](const Variable *m) -> bool { return *v == *m; }) != end();
|
||||
};
|
||||
bool contains(const VariableValue *v) {
|
||||
return std::find_if(begin(), end(),
|
||||
|
||||
Reference in New Issue
Block a user