-
-
Save rubenwardy/7330dd22e23d9d4ec11086590e81ccf1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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