From 32b94557c605f02fa969bc84b3c9b6f5277c258e Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 20 Mar 2017 16:06:15 -0700 Subject: Replace CPVT_ArrayTemplate in cpdf_variabletext.cpp and remove it. Change-Id: I4354a841d6e2d4f30ccb298d13dffa49b9f3a3b3 Reviewed-on: https://pdfium-review.googlesource.com/3131 Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- core/fpdfdoc/cpdf_variabletext.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'core/fpdfdoc/cpdf_variabletext.h') diff --git a/core/fpdfdoc/cpdf_variabletext.h b/core/fpdfdoc/cpdf_variabletext.h index 59fe12402a..2e6caf63d6 100644 --- a/core/fpdfdoc/cpdf_variabletext.h +++ b/core/fpdfdoc/cpdf_variabletext.h @@ -8,8 +8,8 @@ #define CORE_FPDFDOC_CPDF_VARIABLETEXT_H_ #include +#include -#include "core/fpdfdoc/cpvt_arraytemplate.h" #include "core/fpdfdoc/cpvt_floatrect.h" #include "core/fpdfdoc/cpvt_line.h" #include "core/fpdfdoc/cpvt_lineinfo.h" @@ -101,7 +101,7 @@ class CPDF_VariableText { void SetAutoFontSize(bool bAuto) { m_bAutoFontSize = bAuto; } void Initialize(); - bool IsValid() const { return m_bInitial; } + bool IsValid() const { return m_bInitialized; } void RearrangeAll(); void RearrangePart(const CPVT_WordRange& PlaceRange); @@ -219,9 +219,7 @@ class CPDF_VariableText { bool IsBigger(float fFontSize) const; CPVT_FloatRect RearrangeSections(const CPVT_WordRange& PlaceRange); - void ResetSectionArray(); - - CPVT_ArrayTemplate m_SectionArray; + std::vector> m_SectionArray; int32_t m_nLimitChar; int32_t m_nCharArray; bool m_bMultiLine; @@ -233,7 +231,7 @@ class CPDF_VariableText { int32_t m_nHorzScale; uint16_t m_wSubWord; float m_fFontSize; - bool m_bInitial; + bool m_bInitialized; CPDF_VariableText::Provider* m_pVTProvider; std::unique_ptr m_pVTIterator; CFX_FloatRect m_rcPlate; -- cgit v1.2.3