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

Unified Diff: chromeos/network/onc/onc_mapper.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/network/network_util.cc ('k') | chromeos/network/onc/onc_merger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/onc/onc_mapper.cc
diff --git a/chromeos/network/onc/onc_mapper.cc b/chromeos/network/onc/onc_mapper.cc
index 83c0e258367d528a7101af298cc3f6fffdcbdb99..c580f75e521e45aada7b187f7d40ccfef240172f 100644
--- a/chromeos/network/onc/onc_mapper.cc
+++ b/chromeos/network/onc/onc_mapper.cc
@@ -40,7 +40,7 @@ scoped_ptr<base::Value> Mapper::MapValue(const OncValueSignature& signature,
}
}
- return result_value.Pass();
+ return result_value;
}
scoped_ptr<base::DictionaryValue> Mapper::MapObject(
@@ -53,7 +53,7 @@ scoped_ptr<base::DictionaryValue> Mapper::MapObject(
MapFields(signature, onc_object, &found_unknown_field, error, result.get());
if (found_unknown_field)
*error = true;
- return result.Pass();
+ return result;
}
scoped_ptr<base::Value> Mapper::MapPrimitive(const OncValueSignature& signature,
@@ -129,7 +129,7 @@ scoped_ptr<base::ListValue> Mapper::MapArray(
else
DCHECK(*nested_error);
}
- return result_array.Pass();
+ return result_array;
}
scoped_ptr<base::Value> Mapper::MapEntry(int index,
« no previous file with comments | « chromeos/network/network_util.cc ('k') | chromeos/network/onc/onc_merger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698