summaryrefslogtreecommitdiffstats
path: root/components/mus/ws/client_connection.cc
diff options
context:
space:
mode:
Diffstat (limited to 'components/mus/ws/client_connection.cc')
-rw-r--r--components/mus/ws/client_connection.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/mus/ws/client_connection.cc b/components/mus/ws/client_connection.cc
index aa8bf90..91ecd81 100644
--- a/components/mus/ws/client_connection.cc
+++ b/components/mus/ws/client_connection.cc
@@ -13,7 +13,7 @@ namespace ws {
ClientConnection::ClientConnection(scoped_ptr<WindowTreeImpl> service,
mojom::WindowTreeClient* client)
- : service_(service.Pass()), client_(client) {}
+ : service_(std::move(service)), client_(client) {}
ClientConnection::~ClientConnection() {}
@@ -22,10 +22,10 @@ DefaultClientConnection::DefaultClientConnection(
ConnectionManager* connection_manager,
mojo::InterfaceRequest<mojom::WindowTree> service_request,
mojom::WindowTreeClientPtr client)
- : ClientConnection(service_impl.Pass(), client.get()),
+ : ClientConnection(std::move(service_impl), client.get()),
connection_manager_(connection_manager),
- binding_(service(), service_request.Pass()),
- client_(client.Pass()) {
+ binding_(service(), std::move(service_request)),
+ client_(std::move(client)) {
binding_.set_connection_error_handler(
[this]() { connection_manager_->OnConnectionError(this); });
}