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

Unified Diff: mojo/converters/transform/transform_type_converters.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/converters/surfaces/tests/surface_unittest.cc ('k') | mojo/fetcher/about_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/converters/transform/transform_type_converters.cc
diff --git a/mojo/converters/transform/transform_type_converters.cc b/mojo/converters/transform/transform_type_converters.cc
index 92a53706f39c6deaa856a91f2610f5040a94c679..e2a4cedab1551655c6631b5e9a20378c8018a196 100644
--- a/mojo/converters/transform/transform_type_converters.cc
+++ b/mojo/converters/transform/transform_type_converters.cc
@@ -4,6 +4,8 @@
#include "mojo/converters/transform/transform_type_converters.h"
+#include <utility>
+
namespace mojo {
// static
@@ -14,8 +16,8 @@ TransformPtr TypeConverter<TransformPtr, gfx::Transform>::Convert(
mojo::Array<float> matrix;
matrix.Swap(&storage);
TransformPtr transform(Transform::New());
- transform->matrix = matrix.Pass();
- return transform.Pass();
+ transform->matrix = std::move(matrix);
+ return transform;
}
// static
« no previous file with comments | « mojo/converters/surfaces/tests/surface_unittest.cc ('k') | mojo/fetcher/about_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698