diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/PropertiesI.cpp | 8 | ||||
-rw-r--r-- | cpp/src/Ice/PropertiesI.h | 1 |
2 files changed, 6 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() diff --git a/cpp/src/Ice/PropertiesI.h b/cpp/src/Ice/PropertiesI.h index 8408f3b24a4..df384de3412 100644 --- a/cpp/src/Ice/PropertiesI.h +++ b/cpp/src/Ice/PropertiesI.h @@ -39,6 +39,7 @@ public: private: + PropertiesI(const PropertiesI*); PropertiesI(); PropertiesI(StringSeq&); |