mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-16 17:41:52 +03:00
Refactoring on variables::Variable
Using the references on key and collection as shared pointers
This commit is contained in:
@@ -187,7 +187,7 @@ inline void RuleWithOperator::getFinalVars(variables::Variables *vars,
|
||||
trans->m_ruleRemoveTargetById.end(),
|
||||
[&, variable, this](std::pair<int, std::string> &m) -> bool {
|
||||
return m.first == getId()
|
||||
&& m.second == *variable->m_fullName.get();
|
||||
&& m.second == *variable->getVariableKeyWithCollection();
|
||||
}) != trans->m_ruleRemoveTargetById.end()) {
|
||||
continue;
|
||||
}
|
||||
@@ -196,7 +196,7 @@ inline void RuleWithOperator::getFinalVars(variables::Variables *vars,
|
||||
[&, variable, trans, this](
|
||||
std::pair<std::string, std::string> &m) -> bool {
|
||||
return containsTag(m.first, trans)
|
||||
&& m.second == *variable->m_fullName.get();
|
||||
&& m.second == *variable->getVariableKeyWithCollection();
|
||||
}) != trans->m_ruleRemoveTargetByTag.end()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user