Variables resolution results now stored into a std::vector instead of std::list

This commit is contained in:
Felipe Zimmerle
2015-11-04 15:51:22 -03:00
parent 2ee5d4ca8f
commit 5bef19aa4d
40 changed files with 143 additions and 275 deletions

View File

@@ -26,15 +26,10 @@
namespace ModSecurity {
namespace Variables {
std::list<transaction::Variable *> *
HighestSeverity::evaluate(Assay *assay) {
std::list<transaction::Variable *> *resl =
new std::list<transaction::Variable *>();
resl->push_back(new transaction::Variable("HIGHEST_SEVERITY",
void HighestSeverity::evaluateInternal(Assay *assay,
std::vector<const transaction::Variable *> *l) {
l->push_back(new transaction::Variable("HIGHEST_SEVERITY",
std::to_string(assay->highest_severity)));
return resl;
}