From 94fb74c3137ab4f9f817f4cfb14e0a68a677422b Mon Sep 17 00:00:00 2001 From: tsepez Date: Tue, 30 Aug 2016 06:37:54 -0700 Subject: More better const-ness in CFX_CountRef<> There are a couple of places where code is calling GetObject() that should be calling GetPrivateCopy(), but works because the value may not be shared at the time. This just makes it safer. Review-Url: https://codereview.chromium.org/2290863002 --- core/fxcrt/include/cfx_count_ref.h | 1 - 1 file changed, 1 deletion(-) (limited to 'core/fxcrt/include') diff --git a/core/fxcrt/include/cfx_count_ref.h b/core/fxcrt/include/cfx_count_ref.h index 817ce95add..954b72bf88 100644 --- a/core/fxcrt/include/cfx_count_ref.h +++ b/core/fxcrt/include/cfx_count_ref.h @@ -30,7 +30,6 @@ class CFX_CountRef { } void SetNull() { m_pObject.Reset(); } - ObjClass* GetObject() { return m_pObject.Get(); } const ObjClass* GetObject() const { return m_pObject.Get(); } template -- cgit v1.2.3