summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authortzik@chromium.org <tzik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-21 17:33:32 +0000
committertzik@chromium.org <tzik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-21 17:33:32 +0000
commitd7979a7da8c0f037797af4ca71c27c7aedb44df2 (patch)
treee5ff0b18b9972a7619356535b5d82a0bab28d319 /base
parent819b27eedfa826fa7d3d378eb14f258dd1c4048e (diff)
downloadchromium_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.h2
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();
}