From 2239cee23e914b974b458699d52733d7dd3116a6 Mon Sep 17 00:00:00 2001 From: tsepez Date: Mon, 17 Oct 2016 11:20:01 -0700 Subject: Rename CFX_CountRef to CFX_SharedCopyOnWrite Avoid confusing this class with other ref-counted objects. Review-Url: https://codereview.chromium.org/2426673002 --- core/fpdfapi/page/cpdf_clippath.h | 4 ++-- core/fpdfapi/page/cpdf_colorstate.h | 4 ++-- core/fpdfapi/page/cpdf_contentmark.h | 4 ++-- core/fpdfapi/page/cpdf_generalstate.h | 2 +- core/fpdfapi/page/cpdf_path.h | 4 ++-- core/fpdfapi/page/cpdf_textstate.h | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) (limited to 'core/fpdfapi') diff --git a/core/fpdfapi/page/cpdf_clippath.h b/core/fpdfapi/page/cpdf_clippath.h index 25fc3860da..dd44cb250e 100644 --- a/core/fpdfapi/page/cpdf_clippath.h +++ b/core/fpdfapi/page/cpdf_clippath.h @@ -12,7 +12,7 @@ #include #include "core/fpdfapi/page/cpdf_path.h" -#include "core/fxcrt/cfx_count_ref.h" +#include "core/fxcrt/cfx_shared_copy_on_write.h" #include "core/fxcrt/fx_basic.h" #include "core/fxcrt/fx_coordinates.h" @@ -57,7 +57,7 @@ class CPDF_ClipPath { std::vector> m_TextList; }; - CFX_CountRef m_Ref; + CFX_SharedCopyOnWrite m_Ref; }; #endif // CORE_FPDFAPI_PAGE_CPDF_CLIPPATH_H_ diff --git a/core/fpdfapi/page/cpdf_colorstate.h b/core/fpdfapi/page/cpdf_colorstate.h index 916abed7ee..49c71b66f9 100644 --- a/core/fpdfapi/page/cpdf_colorstate.h +++ b/core/fpdfapi/page/cpdf_colorstate.h @@ -8,7 +8,7 @@ #define CORE_FPDFAPI_PAGE_CPDF_COLORSTATE_H_ #include "core/fpdfapi/page/cpdf_color.h" -#include "core/fxcrt/cfx_count_ref.h" +#include "core/fxcrt/cfx_shared_copy_on_write.h" #include "core/fxcrt/fx_basic.h" #include "core/fxcrt/fx_system.h" @@ -71,7 +71,7 @@ class CPDF_ColorState { FX_FLOAT* pValue, uint32_t nValues); - CFX_CountRef m_Ref; + CFX_SharedCopyOnWrite m_Ref; }; #endif // CORE_FPDFAPI_PAGE_CPDF_COLORSTATE_H_ diff --git a/core/fpdfapi/page/cpdf_contentmark.h b/core/fpdfapi/page/cpdf_contentmark.h index 9d137faa35..485fe3b4c6 100644 --- a/core/fpdfapi/page/cpdf_contentmark.h +++ b/core/fpdfapi/page/cpdf_contentmark.h @@ -10,7 +10,7 @@ #include #include "core/fpdfapi/page/cpdf_contentmarkitem.h" -#include "core/fxcrt/cfx_count_ref.h" +#include "core/fxcrt/cfx_shared_copy_on_write.h" #include "core/fxcrt/fx_basic.h" #include "core/fxcrt/fx_system.h" @@ -58,7 +58,7 @@ class CPDF_ContentMark { std::vector m_Marks; }; - CFX_CountRef m_Ref; + CFX_SharedCopyOnWrite m_Ref; }; #endif // CORE_FPDFAPI_PAGE_CPDF_CONTENTMARK_H_ diff --git a/core/fpdfapi/page/cpdf_generalstate.h b/core/fpdfapi/page/cpdf_generalstate.h index 8c6b0622f4..5211c52e5b 100644 --- a/core/fpdfapi/page/cpdf_generalstate.h +++ b/core/fpdfapi/page/cpdf_generalstate.h @@ -103,7 +103,7 @@ class CPDF_GeneralState { FX_FLOAT m_Smoothness; }; - CFX_CountRef m_Ref; + CFX_SharedCopyOnWrite m_Ref; }; #endif // CORE_FPDFAPI_PAGE_CPDF_GENERALSTATE_H_ diff --git a/core/fpdfapi/page/cpdf_path.h b/core/fpdfapi/page/cpdf_path.h index 6322f08ba2..d69672a4de 100644 --- a/core/fpdfapi/page/cpdf_path.h +++ b/core/fpdfapi/page/cpdf_path.h @@ -7,7 +7,7 @@ #ifndef CORE_FPDFAPI_PAGE_CPDF_PATH_H_ #define CORE_FPDFAPI_PAGE_CPDF_PATH_H_ -#include "core/fxcrt/cfx_count_ref.h" +#include "core/fxcrt/cfx_shared_copy_on_write.h" #include "core/fxcrt/fx_system.h" #include "core/fxge/cfx_fxgedevice.h" #include "core/fxge/cfx_pathdata.h" @@ -44,7 +44,7 @@ class CPDF_Path { const CFX_PathData* GetObject() const { return m_Ref.GetObject(); } private: - CFX_CountRef m_Ref; + CFX_SharedCopyOnWrite m_Ref; }; #endif // CORE_FPDFAPI_PAGE_CPDF_PATH_H_ diff --git a/core/fpdfapi/page/cpdf_textstate.h b/core/fpdfapi/page/cpdf_textstate.h index e76e376c3b..4723469fd9 100644 --- a/core/fpdfapi/page/cpdf_textstate.h +++ b/core/fpdfapi/page/cpdf_textstate.h @@ -7,7 +7,7 @@ #ifndef CORE_FPDFAPI_PAGE_CPDF_TEXTSTATE_H_ #define CORE_FPDFAPI_PAGE_CPDF_TEXTSTATE_H_ -#include "core/fxcrt/cfx_count_ref.h" +#include "core/fxcrt/cfx_shared_copy_on_write.h" #include "core/fxcrt/fx_basic.h" class CPDF_Document; @@ -81,7 +81,7 @@ class CPDF_TextState { FX_FLOAT m_CTM[4]; }; - CFX_CountRef m_Ref; + CFX_SharedCopyOnWrite m_Ref; }; bool SetTextRenderingModeFromInt(int iMode, TextRenderingMode* mode); -- cgit v1.2.3