hide output

This commit is contained in:
Talyx
2022-02-22 19:59:05 +03:00
parent ab7ba02446
commit 4af179523f

View File

@@ -40,8 +40,8 @@ namespace config
{ {
TOMLMap::iterator it; TOMLMap::iterator it;
DBOUT << ">>> cleaning up: <<<" << std::endl; // DBOUT << ">>> cleaning up: <<<" << std::endl;
DBOUT << root << ENDL; // DBOUT << root << ENDL;
if (!root) if (!root)
return; return;
for (it = root->begin(); it != root->end(); ++it) for (it = root->begin(); it != root->end(); ++it)
@@ -52,9 +52,9 @@ namespace config
clean_generic(it->second); clean_generic(it->second);
/* delete it->second; */ /* delete it->second; */
DBOUT << ", " << std::endl; // DBOUT << ", " << std::endl;
} }
DBOUT << YELLO << "end of clean" << ENDL; // DBOUT << YELLO << "end of clean" << ENDL;
root->clear(); root->clear();
delete root; delete root;
root = NULL; root = NULL;
@@ -107,14 +107,14 @@ namespace config
case toml_node::ARRAY: case toml_node::ARRAY:
{ {
DBOUT << "cleaning ARRAY" << ENDL; // DBOUT << "cleaning ARRAY" << ENDL;
TOMLArray *arr = node->getArray(); TOMLArray *arr = node->getArray();
for (TOMLArray::iterator it = arr->begin(); for (TOMLArray::iterator it = arr->begin();
it != arr->end(); ++it) it != arr->end(); ++it)
config::clean_generic(*it); config::clean_generic(*it);
arr->clear(); arr->clear();
delete arr; delete arr;
DBOUT << "end cleaning MAP" << ENDL; // DBOUT << "end cleaning MAP" << ENDL;
} }
break; break;