From 0b95042db2e6dab5876abd12ce485fff0a8e08fe Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 21 Sep 2017 15:49:49 -0400 Subject: Rename CFX_RetainPtr to RetainPtr This CL renames CFX_RetainPtr to RetainPtr and places in the fxcrt namespace. Bug: pdfium:898 Change-Id: I8798a9f79cb0840d3f037e8d04937cedd742914e Reviewed-on: https://pdfium-review.googlesource.com/14616 Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- xfa/fde/cfde_textout.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xfa/fde/cfde_textout.cpp') diff --git a/xfa/fde/cfde_textout.cpp b/xfa/fde/cfde_textout.cpp index 3cf4ed36e0..0e9005d88e 100644 --- a/xfa/fde/cfde_textout.cpp +++ b/xfa/fde/cfde_textout.cpp @@ -33,7 +33,7 @@ bool IsTextAlignmentTop(const FDE_TextAlignment align) { // static bool CFDE_TextOut::DrawString(CFX_RenderDevice* device, FX_ARGB color, - const CFX_RetainPtr& pFont, + const RetainPtr& pFont, FXTEXT_CHARPOS* pCharPos, int32_t iCount, float fFontSize, @@ -63,11 +63,11 @@ bool CFDE_TextOut::DrawString(CFX_RenderDevice* device, FxFont.SetSubstFont(std::move(SubstFxFont)); #endif // _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ - CFX_RetainPtr pCurFont; + RetainPtr pCurFont; FXTEXT_CHARPOS* pCurCP = nullptr; int32_t iCurCount = 0; for (int32_t i = 0; i < iCount; ++i) { - CFX_RetainPtr pSTFont = + RetainPtr pSTFont = pFont->GetSubstFont(static_cast(pCharPos->m_GlyphIndex)); pCharPos->m_GlyphIndex &= 0x00FFFFFF; pCharPos->m_bFontStyle = false; @@ -140,7 +140,7 @@ CFDE_TextOut::CFDE_TextOut() CFDE_TextOut::~CFDE_TextOut() {} -void CFDE_TextOut::SetFont(const CFX_RetainPtr& pFont) { +void CFDE_TextOut::SetFont(const RetainPtr& pFont) { ASSERT(pFont); m_pFont = pFont; m_pTxtBreak->SetFont(pFont); -- cgit v1.2.3