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

@@ -20,7 +20,7 @@
#include "src/operators/pm.h"
#ifdef __cplusplus
namespace modsecurity {
namespace operators {
@@ -30,7 +30,8 @@ class PmFromFile : public Pm {
/** @ingroup ModSecurity_Operator */
PmFromFile(std::string op, std::string param, bool negation)
: Pm(op, param, negation) { }
explicit PmFromFile(std::string param)
: Pm("PmFromFile", param) { }
bool init(const std::string &file, std::string *error) override;
};
@@ -38,7 +39,5 @@ class PmFromFile : public Pm {
} // namespace operators
} // namespace modsecurity
#endif
#endif // SRC_OPERATORS_PM_FROM_FILE_H_