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

Unified Diff: base/containers/scoped_ptr_map.h

Issue 1423663010: Change ScopedPtr(Hash)Map to make qualified calls to ignore_result(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix whitespace Created 5 years, 2 months 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 | « base/containers/scoped_ptr_hash_map_unittest.cc ('k') | base/containers/scoped_ptr_map_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/containers/scoped_ptr_map.h
diff --git a/base/containers/scoped_ptr_map.h b/base/containers/scoped_ptr_map.h
index 622a39d121e8fa2b3f5eb8f91874229d6bf885d3..23aadbbe9deef07822759eba68698d1633833b27 100644
--- a/base/containers/scoped_ptr_map.h
+++ b/base/containers/scoped_ptr_map.h
@@ -69,7 +69,7 @@ class ScopedPtrMap {
std::pair<const_iterator, bool> insert(const Key& key, ScopedPtr val) {
auto result = data_.insert(std::make_pair(key, val.get()));
if (result.second)
- ignore_result(val.release());
+ ::ignore_result(val.release());
return result;
}
« no previous file with comments | « base/containers/scoped_ptr_hash_map_unittest.cc ('k') | base/containers/scoped_ptr_map_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698