mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 12:07:46 +03:00
cppcheck: make static analysis more pedantic
This commit is contained in:
@@ -28,7 +28,7 @@ namespace modsecurity {
|
||||
namespace variables {
|
||||
|
||||
|
||||
Variable::Variable(std::string name)
|
||||
Variable::Variable(const std::string &name)
|
||||
: m_name(name),
|
||||
m_collectionName("") {
|
||||
size_t a = m_name.find(":");
|
||||
|
@@ -539,7 +539,7 @@ class VariableMonkeyResolution {
|
||||
|
||||
class Variable : public VariableMonkeyResolution {
|
||||
public:
|
||||
explicit Variable(std::string _name);
|
||||
explicit Variable(const std::string &name);
|
||||
explicit Variable(Variable *_name);
|
||||
virtual ~Variable() { }
|
||||
|
||||
|
@@ -42,7 +42,7 @@ class XML_NoDictElement : public Variable {
|
||||
m_var(&m_name, &m_plain) {
|
||||
}
|
||||
|
||||
void evaluate(Transaction *transaction,
|
||||
void evaluate(Transaction *t,
|
||||
Rule *rule,
|
||||
std::vector<const VariableValue *> *l) override {
|
||||
l->push_back(new VariableValue(&m_var));
|
||||
|
Reference in New Issue
Block a user