mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 13:26:01 +03:00
Change some parms from pass-by-value to reference-to-const
This commit is contained in:
parent
8d91a5084f
commit
1078a7cfab
@ -106,8 +106,8 @@ class Global_DynamicElement : public Variable {
|
||||
t->m_rules->m_secWebAppId.m_value);
|
||||
}
|
||||
|
||||
static void storeOrUpdateFirst(Transaction *t, std::string var,
|
||||
std::string value) {
|
||||
static void storeOrUpdateFirst(Transaction *t, const std::string &var,
|
||||
const std::string &value) {
|
||||
t->m_collections.m_global_collection->storeOrUpdateFirst(
|
||||
var, t->m_collections.m_global_collection_key,
|
||||
t->m_rules->m_secWebAppId.m_value,
|
||||
|
@ -58,8 +58,6 @@ rethrowNoCurrentException:src/rule_with_actions.cc:127
|
||||
ctunullpointer:src/rule_with_actions.cc:244
|
||||
ctunullpointer:src/rule_with_operator.cc:135
|
||||
ctunullpointer:src/rule_with_operator.cc:95
|
||||
passedByValue:src/variables/global.h:109
|
||||
passedByValue:src/variables/global.h:110
|
||||
passedByValue:test/common/modsecurity_test.cc:49
|
||||
passedByValue:test/common/modsecurity_test.cc:98
|
||||
unreadVariable:src/rule_with_operator.cc:219
|
||||
|
Loading…
x
Reference in New Issue
Block a user