mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Using `clear' to clean up lists instead of clean via integration
This commit is contained in:
@@ -38,10 +38,10 @@ Collections::Collections() {
|
||||
|
||||
|
||||
Collections::~Collections() {
|
||||
for (auto &a : *this) {
|
||||
this->erase(a.first);
|
||||
delete a.second;
|
||||
for (const auto &thing : *this) {
|
||||
delete thing.second;
|
||||
}
|
||||
this->clear();
|
||||
}
|
||||
|
||||
|
||||
|
@@ -35,9 +35,7 @@ Variables::Variables() {
|
||||
}
|
||||
|
||||
Variables::~Variables() {
|
||||
for (auto &a : *this) {
|
||||
this->erase(a.first);
|
||||
}
|
||||
this->clear();
|
||||
}
|
||||
|
||||
void Variables::store(std::string key, std::string value) {
|
||||
|
Reference in New Issue
Block a user