mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 12:18:01 +01:00
XML: complete merge from 1.4.2
This commit is contained in:
@@ -78,10 +78,17 @@ void ConfigurationView::enumerate(const std::string& key, Keys& range) const
|
||||
}
|
||||
|
||||
|
||||
void ConfigurationView::removeRaw(const std::string& key)
|
||||
{
|
||||
std::string translatedKey = translateKey(key);
|
||||
_pConfig->remove(translatedKey);
|
||||
}
|
||||
|
||||
|
||||
std::string ConfigurationView::translateKey(const std::string& key) const
|
||||
{
|
||||
std::string result = _prefix;
|
||||
if (!result.empty() && !key.empty()) result += '.';
|
||||
if (!result.empty() && !key.empty() && key[0] != '[') result += '.';
|
||||
result += key;
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user