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

Unified Diff: mojo/common/common_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/application/public/cpp/lib/service_registry.cc ('k') | mojo/common/data_pipe_drainer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/common/common_type_converters.cc
diff --git a/mojo/common/common_type_converters.cc b/mojo/common/common_type_converters.cc
index 16c477d192f1f476cded29558e3ab5eef0f5235b..7c87169324bd87f471e8665b2dc9414b3eedbdc0 100644
--- a/mojo/common/common_type_converters.cc
+++ b/mojo/common/common_type_converters.cc
@@ -51,7 +51,7 @@ Array<uint8_t> TypeConverter<Array<uint8_t>, std::string>::Convert(
Array<uint8_t> result(input.size());
if (input.size() > 0)
memcpy(&result.front(), input.c_str(), input.size());
- return result.Pass();
+ return result;
}
} // namespace mojo
« no previous file with comments | « mojo/application/public/cpp/lib/service_registry.cc ('k') | mojo/common/data_pipe_drainer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698