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

Unified Diff: mojo/services/surfaces/cpp/surfaces_utils.cc

Issue 1408793006: Convert "return local_var.Pass();" to "return local_var;". (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 months 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/services/http_server/cpp/lib/http_server_util.cc ('k') | mojo/services/view_manager/cpp/lib/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/surfaces/cpp/surfaces_utils.cc
diff --git a/mojo/services/surfaces/cpp/surfaces_utils.cc b/mojo/services/surfaces/cpp/surfaces_utils.cc
index b675f739e60ab2b6acbb21d50087ddee894f80ec..d37dcbb4f8192a637f5794e67d63f4b37f70dd34 100644
--- a/mojo/services/surfaces/cpp/surfaces_utils.cc
+++ b/mojo/services/surfaces/cpp/surfaces_utils.cc
@@ -16,7 +16,7 @@ TransformPtr GetIdentityTransform() {
transform->matrix[5] = 1.f;
transform->matrix[10] = 1.f;
transform->matrix[15] = 1.f;
- return transform.Pass();
+ return transform;
}
}
@@ -33,7 +33,7 @@ SharedQuadStatePtr CreateDefaultSQS(const Size& size) {
sqs->opacity = 1.f;
sqs->blend_mode = mojo::SkXfermode::kSrc_Mode;
sqs->sorting_context_id = 0;
- return sqs.Pass();
+ return sqs;
}
PassPtr CreateDefaultPass(int id, const Rect& rect) {
@@ -43,7 +43,7 @@ PassPtr CreateDefaultPass(int id, const Rect& rect) {
pass->damage_rect = rect.Clone();
pass->transform_to_root_target = GetIdentityTransform();
pass->has_transparent_background = false;
- return pass.Pass();
+ return pass;
}
} // namespace mojo
« no previous file with comments | « mojo/services/http_server/cpp/lib/http_server_util.cc ('k') | mojo/services/view_manager/cpp/lib/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698