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

Unified Diff: base/environment.cc

Issue 1479473002: base: Use std::move() instead of Pass() for real movable types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: base/environment.cc
diff --git a/base/environment.cc b/base/environment.cc
index 11b2bc39a9e0600741fb55559ca609c44da3641a..ca24ac70997a9a0de94fe320e46cb10ecbc6068d 100644
--- a/base/environment.cc
+++ b/base/environment.cc
@@ -228,7 +228,7 @@ scoped_ptr<char*[]> AlterEnvironment(const char* const* const env,
result[i] = &storage_data[result_indices[i]];
result[result_indices.size()] = 0; // Null terminator.
- return result.Pass();
+ return result;
}
#endif // OS_POSIX

Powered by Google App Engine
This is Rietveld 408576698