mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
cppcheck: make static analysis more pedantic
This commit is contained in:
@@ -119,7 +119,7 @@ std::string UnitTest::print() {
|
||||
}
|
||||
|
||||
|
||||
UnitTest *UnitTest::from_yajl_node(yajl_val &node) {
|
||||
UnitTest *UnitTest::from_yajl_node(const yajl_val &node) {
|
||||
size_t num_tests = node->u.object.len;
|
||||
UnitTest *u = new UnitTest();
|
||||
|
||||
|
@@ -27,7 +27,7 @@ namespace modsecurity_test {
|
||||
|
||||
class UnitTest {
|
||||
public:
|
||||
static UnitTest *from_yajl_node(yajl_val &);
|
||||
static UnitTest *from_yajl_node(const yajl_val &);
|
||||
|
||||
std::string print();
|
||||
|
||||
|
Reference in New Issue
Block a user