mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Added const reported by cppcheck 2.14
This commit is contained in:
committed by
Eduardo Arias
parent
d053ec6de6
commit
bbef22b3b5
@@ -92,7 +92,7 @@ struct TransformationTest {
|
||||
return tfn;
|
||||
}
|
||||
|
||||
static UnitTestResult eval(const ItemType &tfn, const UnitTest &t, modsecurity::Transaction &transaction) {
|
||||
static UnitTestResult eval(const ItemType &tfn, const UnitTest &t, const modsecurity::Transaction &transaction) {
|
||||
auto ret = t.input;
|
||||
tfn.transform(ret, &transaction);
|
||||
return {1, ret};
|
||||
|
@@ -75,7 +75,7 @@ void json2bin(std::string *str) {
|
||||
}
|
||||
|
||||
|
||||
std::string UnitTest::print() {
|
||||
std::string UnitTest::print() const {
|
||||
std::stringstream i;
|
||||
|
||||
i << KRED << "Test failed." << RESET;
|
||||
|
@@ -35,7 +35,7 @@ class UnitTest {
|
||||
public:
|
||||
static UnitTest *from_yajl_node(const yajl_val &);
|
||||
|
||||
std::string print();
|
||||
std::string print() const;
|
||||
|
||||
std::string param;
|
||||
std::string input;
|
||||
|
Reference in New Issue
Block a user