X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fwtf%2FPassOwnPtr.h;h=01a8ce80d1034d45423a12978a89a3146cd404ea;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=198e4a295965bf8fdb2a4e5650b55e34fa5afde5;hpb=7338fba38ba696536d1cc9d389afd716a6ab2fe6;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/wtf/PassOwnPtr.h b/src/third_party/WebKit/Source/wtf/PassOwnPtr.h index 198e4a2..01a8ce8 100644 --- a/src/third_party/WebKit/Source/wtf/PassOwnPtr.h +++ b/src/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 bool operator==(const PassOwnPtr&) { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; } - template bool operator!=(const PassOwnPtr&) { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; } - template bool operator==(const OwnPtr&) { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; } - template bool operator!=(const OwnPtr&) { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; } + template bool operator==(const PassOwnPtr&) const { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; } + template bool operator!=(const PassOwnPtr&) const { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; } + template bool operator==(const OwnPtr&) const { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; } + template bool operator!=(const OwnPtr&) const { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; } mutable PtrType m_ptr; };