summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/Ice/PropertiesI.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/cpp/src/Ice/PropertiesI.cpp b/cpp/src/Ice/PropertiesI.cpp
index 566bd48ee43..efdd85c25a8 100644
--- a/cpp/src/Ice/PropertiesI.cpp
+++ b/cpp/src/Ice/PropertiesI.cpp
@@ -95,7 +95,17 @@ Ice::PropertiesI::setProperty(const string& key, const string& value)
{
IceUtil::Mutex::Lock sync(*this);
- _properties[key] = value;
+ if(!key.empty())
+ {
+ if(!value.empty())
+ {
+ _properties.insert(make_pair(key, value));
+ }
+ else
+ {
+ _properties.erase(key);
+ }
+ }
}
StringSeq