summaryrefslogtreecommitdiff
path: root/matlab/src/IceMatlab/Communicator.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2017-10-03 17:01:55 -0700
committerMark Spruiell <mes@zeroc.com>2017-10-03 17:01:55 -0700
commit6f8afb3396d88ee57076a56f5a424e3c36a56911 (patch)
treec5458fa7354b8a94b8e78c7479bb5dfdc35c0dbc /matlab/src/IceMatlab/Communicator.cpp
parentAdding more tests; checksum support (diff)
downloadice-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.cpp6
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)
{