summaryrefslogtreecommitdiffstats
path: root/base/linked_ptr.h
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-21 00:51:20 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-21 00:51:20 +0000
commit765b3550e2164b7ccc5360b360ba940639be71c1 (patch)
treefe855f08e9d8a4b7d5384ddea9856584acb7ce73 /base/linked_ptr.h
parentefa56b0361925d8a49bf1fc27021a03d24be9f75 (diff)
downloadchromium_src-765b3550e2164b7ccc5360b360ba940639be71c1.zip
chromium_src-765b3550e2164b7ccc5360b360ba940639be71c1.tar.gz
chromium_src-765b3550e2164b7ccc5360b360ba940639be71c1.tar.bz2
Kill NavigationControllerBase. I merged the two into NavigationController.
This fixes a leak of NavigationEntry's by using the spiffy linked ptr. I had to add a const to linked_ptr for the comparisons to work. BUG=1319484 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1137 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/linked_ptr.h')
-rw-r--r--base/linked_ptr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/linked_ptr.h b/base/linked_ptr.h
index 16ce0eb..b8c7a5e 100644
--- a/base/linked_ptr.h
+++ b/base/linked_ptr.h
@@ -142,8 +142,8 @@ class linked_ptr {
return v;
}
- bool operator==(T* p) const { return value_ == p; }
- bool operator!=(T* p) const { return value_ != p; }
+ bool operator==(const T* p) const { return value_ == p; }
+ bool operator!=(const T* p) const { return value_ != p; }
template <typename U>
bool operator==(linked_ptr<U> const& ptr) const {
return value_ == ptr.get();