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

Unified Diff: remoting/host/host_config.cc

Issue 1549493004: Use std::move() instead of .Pass() in remoting/host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass
Patch Set: include <utility> 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 | « remoting/host/host_change_notification_listener_unittest.cc ('k') | remoting/host/host_window_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_config.cc
diff --git a/remoting/host/host_config.cc b/remoting/host/host_config.cc
index 872bb07f1a20f8a67dcc6ba2c52f5d2a40089dd9..f46496200023aaf98eac776820ffb212274a2a09 100644
--- a/remoting/host/host_config.cc
+++ b/remoting/host/host_config.cc
@@ -21,9 +21,7 @@ scoped_ptr<base::DictionaryValue> HostConfigFromJson(
return nullptr;
}
- scoped_ptr<base::DictionaryValue> config(
- static_cast<base::DictionaryValue*>(value.release()));
- return config.Pass();
+ return make_scoped_ptr(static_cast<base::DictionaryValue*>(value.release()));
}
std::string HostConfigToJson(const base::DictionaryValue& host_config) {
« no previous file with comments | « remoting/host/host_change_notification_listener_unittest.cc ('k') | remoting/host/host_window_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698