mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-17 01:51:52 +03:00
Added const reported by cppcheck 2.14
This commit is contained in:
committed by
Eduardo Arias
parent
d053ec6de6
commit
bbef22b3b5
@@ -131,7 +131,7 @@ int JSON::addArgument(const std::string& value) {
|
||||
std::string path;
|
||||
|
||||
for (size_t i = 0; i < m_containers.size(); i++) {
|
||||
JSONContainerArray *a = dynamic_cast<JSONContainerArray *>(
|
||||
const JSONContainerArray *a = dynamic_cast<JSONContainerArray *>(
|
||||
m_containers[i]);
|
||||
path = path + m_containers[i]->m_name;
|
||||
if (a != NULL) {
|
||||
|
||||
@@ -79,7 +79,7 @@ class JSON {
|
||||
static int yajl_end_array(void *ctx);
|
||||
|
||||
bool isPreviousArray() const {
|
||||
JSONContainerArray *prev = NULL;
|
||||
const JSONContainerArray *prev = NULL;
|
||||
if (m_containers.size() < 1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ class XML {
|
||||
static xmlParserInputBufferPtr unloadExternalEntity(const char *URI,
|
||||
xmlCharEncoding enc);
|
||||
|
||||
static void null_error(void *ctx, const char *msg, ...) {
|
||||
static void null_error(void *ctx, const char *msg, ...) { // cppcheck-suppress[constParameterPointer,constParameterCallback]
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user