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

Unified Diff: remoting/host/gcd_rest_client.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: 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
Index: remoting/host/gcd_rest_client.cc
diff --git a/remoting/host/gcd_rest_client.cc b/remoting/host/gcd_rest_client.cc
index 0a4ac48c498fc43deffe72ed827917796ab2132c..2c86a2dd1f65860acf057a6f1af217b08bed0a03 100644
--- a/remoting/host/gcd_rest_client.cc
+++ b/remoting/host/gcd_rest_client.cc
@@ -57,9 +57,9 @@ void GcdRestClient::PatchState(
scoped_ptr<base::ListValue> patch_list(new base::ListValue);
base::DictionaryValue* patch_item = new base::DictionaryValue;
patch_list->Append(patch_item);
- patch_item->Set("patch", patch_details.Pass());
+ patch_item->Set("patch", std::move(patch_details));
patch_item->SetDouble("timeMs", now);
- patch_dict->Set("patches", patch_list.Pass());
+ patch_dict->Set("patches", std::move(patch_list));
// Stringify the message.
std::string patch_string;

Powered by Google App Engine
This is Rietveld 408576698