mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
lib/libconfigfile/configfile.cpp: add deleteKey()
This commit is contained in:
@@ -451,3 +451,11 @@ void CConfigFile::setStringVector(const std::string & key, const std::vector<std
|
||||
}
|
||||
unknownKeyQueryedFlag = tmpUnknownKeyQueryedFlag;
|
||||
}
|
||||
|
||||
bool CConfigFile::deleteKey(const std::string & key)
|
||||
{
|
||||
bool ret = configData.erase(key) != 0;
|
||||
if (ret)
|
||||
modifiedFlag = true;
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user