diff options
author | Marc Laukien <marc@zeroc.com> | 2004-02-17 18:23:04 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2004-02-17 18:23:04 +0000 |
commit | ed4330c0f7274190b2eff63bfbfe4925a08fa154 (patch) | |
tree | e17a0178d1840e7e282bf6e2875c20878433dfdf /cpp/src | |
parent | more AMI and other cleanup (diff) | |
download | ice-ed4330c0f7274190b2eff63bfbfe4925a08fa154.tar.bz2 ice-ed4330c0f7274190b2eff63bfbfe4925a08fa154.tar.xz ice-ed4330c0f7274190b2eff63bfbfe4925a08fa154.zip |
fix
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&); |