mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 21:07:59 +03:00
hide output
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user