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

Unified Diff: mojo/platform_handle/platform_handle_functions.cc

Issue 1538823002: Convert Pass()→std::move() in mojo/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « mojo/package_manager/package_manager_impl.cc ('k') | mojo/runner/child/native_apptest_target.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/platform_handle/platform_handle_functions.cc
diff --git a/mojo/platform_handle/platform_handle_functions.cc b/mojo/platform_handle/platform_handle_functions.cc
index 1359ddadde961989c144000b919dc304dc494d76..7b721b0824c621d90ad5f5d557938ef3a19993e3 100644
--- a/mojo/platform_handle/platform_handle_functions.cc
+++ b/mojo/platform_handle/platform_handle_functions.cc
@@ -4,6 +4,8 @@
#include "mojo/platform_handle/platform_handle_functions.h"
+#include <utility>
+
#include "third_party/mojo/src/mojo/edk/embedder/embedder.h"
extern "C" {
@@ -14,7 +16,7 @@ MojoResult MojoCreatePlatformHandleWrapper(MojoPlatformHandle platform_handle,
mojo::embedder::ScopedPlatformHandle scoped_platform_handle(
platform_handle_wrapper);
return mojo::embedder::CreatePlatformHandleWrapper(
- scoped_platform_handle.Pass(), wrapper);
+ std::move(scoped_platform_handle), wrapper);
}
MojoResult MojoExtractPlatformHandle(MojoHandle wrapper,
« no previous file with comments | « mojo/package_manager/package_manager_impl.cc ('k') | mojo/runner/child/native_apptest_target.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698