Cosmetics: Fix some static analysis report

This commit is contained in:
Felipe Zimmerle
2016-11-29 10:27:51 -03:00
parent 9bd37ccb63
commit e6b58014db
15 changed files with 43 additions and 51 deletions

View File

@@ -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;

View File

@@ -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;
};