diff options
author | tzik@chromium.org <tzik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-21 17:33:32 +0000 |
---|---|---|
committer | tzik@chromium.org <tzik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-21 17:33:32 +0000 |
commit | d7979a7da8c0f037797af4ca71c27c7aedb44df2 (patch) | |
tree | e5ff0b18b9972a7619356535b5d82a0bab28d319 /base | |
parent | 819b27eedfa826fa7d3d378eb14f258dd1c4048e (diff) | |
download | chromium_src-d7979a7da8c0f037797af4ca71c27c7aedb44df2.zip chromium_src-d7979a7da8c0f037797af4ca71c27c7aedb44df2.tar.gz chromium_src-d7979a7da8c0f037797af4ca71c27c7aedb44df2.tar.bz2 |
Avoiding duplication of singular iterator
BUG= 65151
TEST='MRUCacheTest.*'
Review URL: http://codereview.chromium.org/7187005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89848 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/memory/mru_cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/memory/mru_cache.h b/base/memory/mru_cache.h index 132b324..32a6fbb 100644 --- a/base/memory/mru_cache.h +++ b/base/memory/mru_cache.h @@ -91,7 +91,7 @@ class MRUCacheBase { } ordering_.push_front(value_type(key, payload)); - index_[key] = ordering_.begin(); + index_.insert(std::make_pair(key, ordering_.begin())); return ordering_.begin(); } |