Refactoring on the operators parsers (2/2)

This is the first step towards remove the memory leaks in the parser
This commit is contained in:
Felipe Zimmerle
2017-01-04 15:30:45 -03:00
committed by Felipe Zimmerle
parent 9cda4c0be0
commit 59114dd598
49 changed files with 550 additions and 240 deletions

View File

@@ -13,9 +13,7 @@
*
*/
#ifdef __cplusplus
#include <string>
#endif
#ifndef SRC_OPERATORS_OPERATOR_H__
#define SRC_OPERATORS_OPERATOR_H__
@@ -23,7 +21,7 @@
#include "modsecurity/transaction.h"
#include "modsecurity/rule.h"
#ifdef __cplusplus
namespace modsecurity {
namespace operators {
@@ -48,7 +46,7 @@ class Operator {
m_op(opName),
m_param(param) { }
Operator(std::string opName)
explicit Operator(std::string opName)
: m_match_message(""),
m_negation(false),
m_op(opName),
@@ -82,7 +80,6 @@ class Operator {
} // namespace operators
} // namespace modsecurity
#endif
#endif // SRC_OPERATORS_OPERATOR_H__