summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/wtf/PassOwnPtr.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/wtf/PassOwnPtr.h')
-rw-r--r--chromium/third_party/WebKit/Source/wtf/PassOwnPtr.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/chromium/third_party/WebKit/Source/wtf/PassOwnPtr.h b/chromium/third_party/WebKit/Source/wtf/PassOwnPtr.h
index 198e4a29596..01a8ce80d10 100644
--- a/chromium/third_party/WebKit/Source/wtf/PassOwnPtr.h
+++ b/chromium/third_party/WebKit/Source/wtf/PassOwnPtr.h
@@ -78,10 +78,10 @@ namespace WTF {
// We should never have two OwnPtrs for the same underlying object (otherwise we'll get
// double-destruction), so these equality operators should never be needed.
- template<typename U> bool operator==(const PassOwnPtr<U>&) { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; }
- template<typename U> bool operator!=(const PassOwnPtr<U>&) { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; }
- template<typename U> bool operator==(const OwnPtr<U>&) { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; }
- template<typename U> bool operator!=(const OwnPtr<U>&) { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; }
+ template<typename U> bool operator==(const PassOwnPtr<U>&) const { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; }
+ template<typename U> bool operator!=(const PassOwnPtr<U>&) const { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; }
+ template<typename U> bool operator==(const OwnPtr<U>&) const { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; }
+ template<typename U> bool operator!=(const OwnPtr<U>&) const { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; }
mutable PtrType m_ptr;
};