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

Unified Diff: mojo/public/cpp/bindings/tests/struct_unittest.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
Index: mojo/public/cpp/bindings/tests/struct_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/struct_unittest.cc b/mojo/public/cpp/bindings/tests/struct_unittest.cc
index 0f65a8c4f4b56520253b9530e2da857b283f1107..f78b75813601e15597361e221043c11f7a40c6b4 100644
--- a/mojo/public/cpp/bindings/tests/struct_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/struct_unittest.cc
@@ -26,7 +26,7 @@ RectPtr MakeRect(int32_t factor = 1) {
rect->y = 2 * factor;
rect->width = 10 * factor;
rect->height = 20 * factor;
- return rect.Pass();
+ return rect;
}
void CheckRect(const Rect& rect, int32_t factor = 1) {
@@ -49,7 +49,7 @@ MultiVersionStructPtr MakeMultiVersionStruct() {
output->f_message_pipe = pipe.handle0.Pass();
output->f_int16 = 42;
- return output.Pass();
+ return output;
}
template <typename U, typename T>
@@ -77,7 +77,7 @@ U SerializeAndDeserialize(T input) {
using RawUType = typename mojo::internal::RemoveStructPtr<U>::type;
U output(RawUType::New());
Deserialize_(output_data, output.get());
- return output.Pass();
+ return output;
}
class StructTest : public testing::Test {

Powered by Google App Engine
This is Rietveld 408576698