summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/memory/scoped_ptr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/memory/scoped_ptr.h b/base/memory/scoped_ptr.h
index 9b1c82e..b1d6149 100644
--- a/base/memory/scoped_ptr.h
+++ b/base/memory/scoped_ptr.h
@@ -389,8 +389,8 @@ class scoped_ptr {
// Comparison operators.
// These return whether two scoped_ptr refer to the same object, not just to
// two different but equal objects.
- bool operator==(element_type* p) const { return impl_.get() == p; }
- bool operator!=(element_type* p) const { return impl_.get() != p; }
+ bool operator==(const element_type* p) const { return impl_.get() == p; }
+ bool operator!=(const element_type* p) const { return impl_.get() != p; }
// Swap two scoped pointers.
void swap(scoped_ptr& p2) {