We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 163483e commit 7197091Copy full SHA for 7197091
src/collections.cc
@@ -38,10 +38,10 @@ Collections::Collections() {
38
39
40
Collections::~Collections() {
41
- for (auto &a : *this) {
42
- this->erase(a.first);
43
- delete a.second;
+ for (const auto &thing : *this) {
+ delete thing.second;
44
}
+ this->clear();
45
46
47
src/variables.cc
@@ -35,9 +35,7 @@ Variables::Variables() {
35
36
37
Variables::~Variables() {
- }
void Variables::store(std::string key, std::string value) {
0 commit comments