Skip to content

Instantly share code, notes, and snippets.

@rubenwardy
Created September 18, 2019 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubenwardy/7330dd22e23d9d4ec11086590e81ccf1 to your computer and use it in GitHub Desktop.
Save rubenwardy/7330dd22e23d9d4ec11086590e81ccf1 to your computer and use it in GitHub Desktop.
bool Settings::remove(const std::string &name)
{
{
MutexAutoLock lock(m_mutex);
SettingEntries::iterator it = m_settings.find(name);
if (it == m_settings.end()) {
return false;
}
delete it->second.group;
m_settings.erase(it);
}
doCallbacks(name);
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment