Skip to content

Commit

Permalink
macOS build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Jan 3, 2024
1 parent 3585ce9 commit 0a307b4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions cpp/test/IceGrid/allocation/AllTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Callback
{
lock_guard<mutex> lg(_mutex);
_response = true;
_obj = move(obj);
_obj = std::move(obj);
}

_condVar.notify_one();
Expand Down Expand Up @@ -81,7 +81,7 @@ class StressClient

StressClient(int id, shared_ptr<RegistryPrx> registry, bool destroySession) :
_id(id),
_registry(move(registry)),
_registry(std::move(registry)),
_notified(false),
_terminated(false),
_destroySession(destroySession)
Expand All @@ -90,7 +90,7 @@ class StressClient

StressClient(int id, shared_ptr<SessionPrx> session) :
_id(id),
_session(move(session)),
_session(std::move(session)),
_notified(false),
_terminated(false),
_destroySession(false)
Expand Down Expand Up @@ -218,7 +218,7 @@ class StressClient

auto cb = make_shared<Callback>();
session->allocateObjectByIdAsync(Ice::stringToIdentity(os.str()),
[cb](shared_ptr<Ice::ObjectPrx> o) { cb->response(move(o)); },
[cb](shared_ptr<Ice::ObjectPrx> o) { cb->response(std::move(o)); },
[cb](exception_ptr) { cb->exception(); });
session->destroy();
}
Expand All @@ -228,8 +228,8 @@ class StressClient
{
auto cb = make_shared<Callback>();
session->allocateObjectByTypeAsync("::StressTest",
[cb](shared_ptr<Ice::ObjectPrx> o) { cb->response(move(o)); },
[cb](exception_ptr) { cb->exception(); });
[cb](shared_ptr<Ice::ObjectPrx> o) { cb->response(std::move(o)); },
[cb](exception_ptr) { cb->exception(); });
session->destroy();
}

Expand Down
2 changes: 1 addition & 1 deletion cpp/test/IceGrid/allocation/TestI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <TestI.h>

TestI::TestI(std::shared_ptr<Ice::Properties> properties) :
_properties(move(properties))
_properties(std::move(properties))
{
}

Expand Down
4 changes: 2 additions & 2 deletions cpp/test/IceGrid/noRestartUpdate/TestI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include <TestI.h>

TestI::TestI(std::shared_ptr<Ice::ObjectAdapter> adapter, std::shared_ptr<Ice::Properties> properties) :
_adapter(move(adapter)),
_properties(move(properties))
_adapter(std::move(adapter)),
_properties(std::move(properties))
{
}

Expand Down

0 comments on commit 0a307b4

Please sign in to comment.