summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/PropertiesI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/PropertiesI.cpp')
-rw-r--r--cpp/src/Ice/PropertiesI.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/cpp/src/Ice/PropertiesI.cpp b/cpp/src/Ice/PropertiesI.cpp
index 14c7209ac8a..b5f44ef5dac 100644
--- a/cpp/src/Ice/PropertiesI.cpp
+++ b/cpp/src/Ice/PropertiesI.cpp
@@ -468,10 +468,12 @@ PropertiesPtr
Ice::PropertiesI::clone()
{
IceUtil::Mutex::Lock sync(*this);
+ return new PropertiesI(this);
+}
- PropertiesI* p = new PropertiesI();
- p->_properties = _properties;
- return p;
+Ice::PropertiesI::PropertiesI(const PropertiesI* p) :
+ _properties(p->_properties)
+{
}
Ice::PropertiesI::PropertiesI()