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

Unified Diff: chromeos/tools/onc_validator/onc_validator.cc

Issue 1556773002: Convert Pass()→std::move() in //chromeos (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 | « chromeos/timezone/timezone_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/tools/onc_validator/onc_validator.cc
diff --git a/chromeos/tools/onc_validator/onc_validator.cc b/chromeos/tools/onc_validator/onc_validator.cc
index e80d612fdb2eddd7accb07ec31c2341a57f3d608..c8251032c4eaca40afc9f26e0c946ed53f35fd50 100644
--- a/chromeos/tools/onc_validator/onc_validator.cc
+++ b/chromeos/tools/onc_validator/onc_validator.cc
@@ -3,9 +3,9 @@
// found in the LICENSE file.
#include <stddef.h>
-
#include <cstdio>
#include <iostream>
+#include <utility>
#include "base/command_line.h"
#include "base/files/file_path.h"
@@ -100,7 +100,7 @@ scoped_ptr<base::DictionaryValue> ReadDictionary(const std::string& filename) {
}
scoped_ptr<base::DictionaryValue> dict =
- base::DictionaryValue::From(value.Pass());
+ base::DictionaryValue::From(std::move(value));
if (!dict) {
LOG(ERROR) << "File '" << filename
<< "' does not contain a dictionary as expected, but type "
« no previous file with comments | « chromeos/timezone/timezone_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698