From d7979a7da8c0f037797af4ca71c27c7aedb44df2 Mon Sep 17 00:00:00 2001 From: "tzik@chromium.org" Date: Tue, 21 Jun 2011 17:33:32 +0000 Subject: 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 --- base/memory/mru_cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'base') 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(); } -- cgit v1.1