mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Cosmetics: fix cppcheck warnings
This commit is contained in:
@@ -232,7 +232,7 @@ int JSON::yajl_start_array(void *ctx) {
|
||||
|
||||
int JSON::yajl_end_array(void *ctx) {
|
||||
JSON *tthis = reinterpret_cast<JSON *>(ctx);
|
||||
if (tthis->m_containers.size() <= 0) {
|
||||
if (tthis->m_containers.empty()) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -266,7 +266,7 @@ int JSON::yajl_start_map(void *ctx) {
|
||||
*/
|
||||
int JSON::yajl_end_map(void *ctx) {
|
||||
JSON *tthis = reinterpret_cast<JSON *>(ctx);
|
||||
if (tthis->m_containers.size() <= 0) {
|
||||
if (tthis->m_containers.empty()) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user