diff options
author | Mark Spruiell <mes@zeroc.com> | 2017-10-03 17:01:55 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2017-10-03 17:01:55 -0700 |
commit | 6f8afb3396d88ee57076a56f5a424e3c36a56911 (patch) | |
tree | c5458fa7354b8a94b8e78c7479bb5dfdc35c0dbc /matlab/src/IceMatlab/Communicator.cpp | |
parent | Adding more tests; checksum support (diff) | |
download | ice-6f8afb3396d88ee57076a56f5a424e3c36a56911.tar.bz2 ice-6f8afb3396d88ee57076a56f5a424e3c36a56911.tar.xz ice-6f8afb3396d88ee57076a56f5a424e3c36a56911.zip |
C++ cleanup
Diffstat (limited to 'matlab/src/IceMatlab/Communicator.cpp')
-rw-r--r-- | matlab/src/IceMatlab/Communicator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/matlab/src/IceMatlab/Communicator.cpp b/matlab/src/IceMatlab/Communicator.cpp index b2a866441ee..efc87bcdf8b 100644 --- a/matlab/src/IceMatlab/Communicator.cpp +++ b/matlab/src/IceMatlab/Communicator.cpp @@ -74,7 +74,7 @@ Ice_Communicator_destroyAsync(void* self, void** future) } }); t.detach(); - *future = new shared_ptr<SimpleFuture>(f); + *future = new shared_ptr<SimpleFuture>(move(f)); return 0; } @@ -177,7 +177,7 @@ Ice_Communicator_getProperties(void* self, void** props) try { auto p = SELF->getProperties(); - *props = new shared_ptr<Ice::Properties>(p); + *props = new shared_ptr<Ice::Properties>(move(p)); } catch(const std::exception& ex) { @@ -318,7 +318,7 @@ Ice_Communicator_flushBatchRequestsAsync(void* self, mxArray* mode, void** futur f->done(); }); f->token(token); - *future = new shared_ptr<SimpleFuture>(f); + *future = new shared_ptr<SimpleFuture>(move(f)); } catch(const std::exception& ex) { |