Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Unified Diff: mojo/public/cpp/bindings/lib/scoped_interface_endpoint_handle.cc

Issue 1477643002: Remove the TYPE_WITH_MOVE_CONSTRUCTOR_FOR_CPP_03 macro. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@basepass
Patch Set: type-with-move: . Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/cpp/bindings/lib/scoped_interface_endpoint_handle.cc
diff --git a/mojo/public/cpp/bindings/lib/scoped_interface_endpoint_handle.cc b/mojo/public/cpp/bindings/lib/scoped_interface_endpoint_handle.cc
index 6f30c9462184f9f43c1c07807d5d25bb7aa91652..dfe4e234241e3be2d2c7586e8266bc36368fcf4a 100644
--- a/mojo/public/cpp/bindings/lib/scoped_interface_endpoint_handle.cc
+++ b/mojo/public/cpp/bindings/lib/scoped_interface_endpoint_handle.cc
@@ -17,7 +17,7 @@ ScopedInterfaceEndpointHandle::ScopedInterfaceEndpointHandle(
InterfaceId id,
bool is_local,
scoped_refptr<MultiplexRouter> router)
- : id_(id), is_local_(is_local), router_(router.Pass()) {
+ : id_(id), is_local_(is_local), router_(std::move(router)) {
DCHECK(!IsValidInterfaceId(id) || router_);
}

Powered by Google App Engine
This is Rietveld 408576698