Minor changes

This commit is contained in:
Nekotekina 2017-01-25 02:22:19 +03:00 committed by Ivan
parent 1c14d872a8
commit 9232ddf0ab
16 changed files with 73 additions and 32 deletions

View file

@ -261,6 +261,22 @@ void cfg::node::from_default()
}
}
void cfg::bool_entry::from_default()
{
value = def;
}
void cfg::string_entry::from_default()
{
*this = def;
}
void cfg::set_entry::from_default()
{
std::lock_guard<std::mutex> lock(m_mutex);
m_set = {};
}
cfg::root_node& cfg::get_root()
{
// Magic static