summaryrefslogtreecommitdiff
path: root/core/fxcrt/include
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/include')
-rw-r--r--core/fxcrt/include/cfx_count_ref.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/fxcrt/include/cfx_count_ref.h b/core/fxcrt/include/cfx_count_ref.h
index 7dbd5dfe26..817ce95add 100644
--- a/core/fxcrt/include/cfx_count_ref.h
+++ b/core/fxcrt/include/cfx_count_ref.h
@@ -30,10 +30,11 @@ class CFX_CountRef {
}
void SetNull() { m_pObject.Reset(); }
+ ObjClass* GetObject() { return m_pObject.Get(); }
const ObjClass* GetObject() const { return m_pObject.Get(); }
template <typename... Args>
- ObjClass* GetModify(Args... params) {
+ ObjClass* GetPrivateCopy(Args... params) {
if (!m_pObject)
return New(params...);
if (!m_pObject->HasOneRef())
@@ -47,7 +48,7 @@ class CFX_CountRef {
bool operator!=(const CFX_CountRef& that) const { return !(*this == that); }
operator bool() const { return m_pObject; }
- protected:
+ private:
class CountedObj : public ObjClass {
public:
template <typename... Args>