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

Unified Diff: mojo/public/cpp/bindings/array.h

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/message_pump/handle_watcher_unittest.cc ('k') | mojo/public/cpp/bindings/binding.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/array.h
diff --git a/mojo/public/cpp/bindings/array.h b/mojo/public/cpp/bindings/array.h
index 320d65f9ac0c462d3ac780338c980a88a39742c4..f76d809edbb5d5a3a49374206688bdc4798138bf 100644
--- a/mojo/public/cpp/bindings/array.h
+++ b/mojo/public/cpp/bindings/array.h
@@ -139,7 +139,7 @@ class Array {
Array result;
result.is_null_ = is_null_;
Traits::Clone(vec_, &result.vec_);
- return result.Pass();
+ return result;
}
// Indicates whether the contents of this array are equal to |other|. A null
@@ -255,7 +255,7 @@ struct TypeConverter<Array<T>, std::vector<E>> {
auto result = Array<T>::New(input.size());
for (size_t i = 0; i < input.size(); ++i)
result[i] = TypeConverter<T, E>::Convert(input[i]);
- return result.Pass();
+ return result;
}
};
@@ -284,7 +284,7 @@ struct TypeConverter<Array<T>, std::set<E>> {
Array<T> result = Array<T>::New(0u);
for (auto i : input)
result.push_back(TypeConverter<T, E>::Convert(i));
- return result.Pass();
+ return result;
}
};
« no previous file with comments | « mojo/message_pump/handle_watcher_unittest.cc ('k') | mojo/public/cpp/bindings/binding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698