mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Using `clear' to clean up lists instead of clean via integration
This commit is contained in:
parent
163483e8d4
commit
71970915b1
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user