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

Unified Diff: third_party/mojo/src/mojo/edk/embedder/simple_platform_shared_buffer_posix.cc

Issue 1545333002: Convert Pass()→std::move() in //third_party/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
Index: third_party/mojo/src/mojo/edk/embedder/simple_platform_shared_buffer_posix.cc
diff --git a/third_party/mojo/src/mojo/edk/embedder/simple_platform_shared_buffer_posix.cc b/third_party/mojo/src/mojo/edk/embedder/simple_platform_shared_buffer_posix.cc
index df99205816674027751cb6771e3417b895e28d59..1047f55dea2e8624e2ef7f349529c7c4e29b69a0 100644
--- a/third_party/mojo/src/mojo/edk/embedder/simple_platform_shared_buffer_posix.cc
+++ b/third_party/mojo/src/mojo/edk/embedder/simple_platform_shared_buffer_posix.cc
@@ -10,8 +10,8 @@
#include <sys/stat.h>
#include <sys/types.h> // For |off_t|.
#include <unistd.h>
-
#include <limits>
+#include <utility>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
@@ -114,7 +114,7 @@ bool SimplePlatformSharedBuffer::InitFromPlatformHandle(
// TODO(vtl): More checks?
- handle_ = platform_handle.Pass();
+ handle_ = std::move(platform_handle);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698