diff options
author | Joe George <joe@zeroc.com> | 2021-02-03 11:16:06 -0500 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2021-02-03 11:42:30 -0500 |
commit | 48f9b28634908c43a23c30e219a9abfb038c1539 (patch) | |
tree | 81420c7142bb57902ad96de1d057b5259c29a287 /cpp/test/IceGrid/update/TestI.cpp | |
parent | IceGrid and IceStorm fixes (diff) | |
download | ice-48f9b28634908c43a23c30e219a9abfb038c1539.tar.bz2 ice-48f9b28634908c43a23c30e219a9abfb038c1539.tar.xz ice-48f9b28634908c43a23c30e219a9abfb038c1539.zip |
Additional C++11 fixes
Diffstat (limited to 'cpp/test/IceGrid/update/TestI.cpp')
-rw-r--r-- | cpp/test/IceGrid/update/TestI.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cpp/test/IceGrid/update/TestI.cpp b/cpp/test/IceGrid/update/TestI.cpp index f91a7ac44b2..d4c0a856036 100644 --- a/cpp/test/IceGrid/update/TestI.cpp +++ b/cpp/test/IceGrid/update/TestI.cpp @@ -5,8 +5,10 @@ #include <Ice/Ice.h> #include <TestI.h> -TestI::TestI(const Ice::PropertiesPtr& properties) : - _properties(properties) +using namespace std; + +TestI::TestI(shared_ptr<Ice::Properties>&& properties) : + _properties(move(properties)) { } @@ -16,8 +18,8 @@ TestI::shutdown(const Ice::Current& current) current.adapter->getCommunicator()->shutdown(); } -std::string -TestI::getProperty(const std::string& name, const Ice::Current&) +string +TestI::getProperty(string name, const Ice::Current&) { return _properties->getProperty(name); } |