diff options
author | tsepez <tsepez@chromium.org> | 2016-05-23 17:19:20 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-23 17:19:20 -0700 |
commit | a2d699f1462050833f959ebcf24853c2a6a10f72 (patch) | |
tree | 35cc25303ebc2bd68d36255e6db69a08f043dc66 /xfa/fgas/layout/fgas_rtfbreak.h | |
parent | db1a24e86d40977fb6d8aa8fa57dadee4c2f1be1 (diff) | |
download | pdfium-a2d699f1462050833f959ebcf24853c2a6a10f72.tar.xz |
Rename IFX_Unknown to IFX_Retainable.
Rename addRef() method to Retain() to match Release().
This CL does not convert to CFX_RetainPtrs, which will happen
in a follow-on.
Review-Url: https://codereview.chromium.org/2005933002
Diffstat (limited to 'xfa/fgas/layout/fgas_rtfbreak.h')
-rw-r--r-- | xfa/fgas/layout/fgas_rtfbreak.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xfa/fgas/layout/fgas_rtfbreak.h b/xfa/fgas/layout/fgas_rtfbreak.h index be3717f584..c090a0dd5d 100644 --- a/xfa/fgas/layout/fgas_rtfbreak.h +++ b/xfa/fgas/layout/fgas_rtfbreak.h @@ -7,6 +7,7 @@ #ifndef XFA_FGAS_LAYOUT_FGAS_RTFBREAK_H_ #define XFA_FGAS_LAYOUT_FGAS_RTFBREAK_H_ +#include "core/fxcrt/include/fx_basic.h" #include "core/fxcrt/include/fx_ucd.h" #include "core/fxge/include/fx_ge.h" #include "xfa/fgas/crt/fgas_memory.h" @@ -14,7 +15,6 @@ #include "xfa/fgas/layout/fgas_textbreak.h" #include "xfa/fgas/layout/fgas_unicode.h" -class IFX_Unknown; class IFX_Font; #define FX_RTFBREAKPOLICY_None 0x00 @@ -186,7 +186,7 @@ class CFX_RTFPiece : public CFX_Target { uint32_t m_dwLayoutStyles; uint32_t m_dwIdentity; CFX_RTFCharArray* m_pChars; - IFX_Unknown* m_pUserData; + IFX_Retainable* m_pUserData; }; typedef CFX_BaseArrayTemplate<CFX_RTFPiece> CFX_RTFPieceArray; @@ -220,7 +220,7 @@ class CFX_RTFLine { int32_t GetLineEnd() const { return m_iStart + m_iWidth; } void RemoveAll(FX_BOOL bLeaveMemory = FALSE) { CFX_RTFChar* pChar; - IFX_Unknown* pUnknown; + IFX_Retainable* pUnknown; int32_t iCount = m_LineChars.GetSize(); for (int32_t i = 0; i < iCount; i++) { pChar = m_LineChars.GetDataPtr(i); @@ -267,7 +267,7 @@ class CFX_RTFBreak { void SetWordSpace(FX_BOOL bDefault, FX_FLOAT fWordSpace); void SetReadingOrder(FX_BOOL bRTL = FALSE); void SetAlignment(int32_t iAlignment = FX_RTFLINEALIGNMENT_Left); - void SetUserData(IFX_Unknown* pUserData); + void SetUserData(IFX_Retainable* pUserData); uint32_t AppendChar(FX_WCHAR wch); uint32_t EndBreak(uint32_t dwStatus = FX_RTFBREAK_PieceBreak); int32_t CountBreakPieces() const; @@ -318,7 +318,7 @@ class CFX_RTFBreak { int32_t m_iWordSpace; FX_BOOL m_bRTL; int32_t m_iAlignment; - IFX_Unknown* m_pUserData; + IFX_Retainable* m_pUserData; FX_CHARTYPE m_eCharType; uint32_t m_dwIdentity; CFX_RTFLine m_RTFLine1; |