mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Cosmetics: Fix some static analysis report
This commit is contained in:
@@ -58,8 +58,8 @@ class Operator {
|
||||
return evaluate(transaction, str);
|
||||
}
|
||||
|
||||
bool m_negation;
|
||||
std::string m_match_message;
|
||||
bool m_negation;
|
||||
std::string m_op;
|
||||
std::string m_param;
|
||||
|
||||
|
@@ -35,9 +35,8 @@ class Rx : public Operator {
|
||||
public:
|
||||
/** @ingroup ModSecurity_Operator */
|
||||
Rx(std::string op, std::string param, bool negation)
|
||||
: Operator(op, param, negation),
|
||||
m_param(param) {
|
||||
m_re = new Regex(param);
|
||||
: Operator(op, param, negation) {
|
||||
m_re = new Regex(param);
|
||||
}
|
||||
|
||||
~Rx() {
|
||||
@@ -51,7 +50,6 @@ class Rx : public Operator {
|
||||
}
|
||||
|
||||
private:
|
||||
std::string m_param;
|
||||
Regex *m_re;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user