diff options
author | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-04 17:40:42 +0000 |
---|---|---|
committer | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-04 17:40:42 +0000 |
commit | 1c15248a5f6ffd48c99bca9d2fbd6d4b375e991c (patch) | |
tree | d4a2afdc09d54265d6b06523a1b02b8f6a86f0fe /base | |
parent | a0cb12d2b84536a2fe4eabd809b694d2bb8837c9 (diff) | |
download | chromium_src-1c15248a5f6ffd48c99bca9d2fbd6d4b375e991c.zip chromium_src-1c15248a5f6ffd48c99bca9d2fbd6d4b375e991c.tar.gz chromium_src-1c15248a5f6ffd48c99bca9d2fbd6d4b375e991c.tar.bz2 |
Fix gcc/msvc differences
Review URL: http://chrome-reviews.prom.corp.google.com/1104
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@321 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/observer_list.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/base/observer_list.h b/base/observer_list.h index a64808d..0242d6a 100644 --- a/base/observer_list.h +++ b/base/observer_list.h @@ -100,7 +100,8 @@ class ObserverList { // Remove an observer from the list. void RemoveObserver(ObserverType* obs) { - ListType::iterator it = find(observers_.begin(), observers_.end(), obs); + typename ListType::iterator it = + std::find(observers_.begin(), observers_.end(), obs); if (it != observers_.end()) { if (notify_depth_) { *it = 0; @@ -140,7 +141,7 @@ class ObserverList { typedef std::vector<ObserverType*> ListType; void Compact() const { - ListType::iterator it = observers_.begin(); + typename ListType::iterator it = observers_.begin(); while (it != observers_.end()) { if (*it) { ++it; |