summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/csection.h
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-05-11 12:59:42 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-11 12:59:42 -0700
commitcac1571474399a6b0271dde998970544543c921f (patch)
tree3227520be91865abb831c482e4795c87ab583fde /core/fpdfdoc/csection.h
parent821d59e1d66b67af970c59b7681828b1b82858b6 (diff)
downloadpdfium-cac1571474399a6b0271dde998970544543c921f.tar.xz
Remove CPVT_Size and CPVT_FloatRange.chromium/2734
- CPVT_Size is the same as CFX_SizeF - CPVT_FloatRange is unused. Review-Url: https://codereview.chromium.org/1961333002
Diffstat (limited to 'core/fpdfdoc/csection.h')
-rw-r--r--core/fpdfdoc/csection.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/fpdfdoc/csection.h b/core/fpdfdoc/csection.h
index d8974cb020..4ac345c8df 100644
--- a/core/fpdfdoc/csection.h
+++ b/core/fpdfdoc/csection.h
@@ -18,10 +18,11 @@ struct CPVT_LineInfo;
struct CPVT_WordLine;
struct CPVT_WordPlace;
-class CSection {
+class CSection final {
public:
explicit CSection(CPDF_VariableText* pVT);
- virtual ~CSection();
+ ~CSection();
+
void ResetAll();
void ResetLineArray();
void ResetWordArray();
@@ -32,7 +33,7 @@ class CSection {
void ClearWords(const CPVT_WordRange& PlaceRange);
void ClearWord(const CPVT_WordPlace& place);
CPVT_FloatRect Rearrange();
- CPVT_Size GetSectionSize(FX_FLOAT fFontSize);
+ CFX_SizeF GetSectionSize(FX_FLOAT fFontSize);
CPVT_WordPlace GetBeginWordPlace() const;
CPVT_WordPlace GetEndWordPlace() const;
CPVT_WordPlace GetPrevWordPlace(const CPVT_WordPlace& place) const;
@@ -56,7 +57,7 @@ class CSection {
void ClearRightWords(int32_t nWordIndex);
void ClearMidWords(int32_t nBeginIndex, int32_t nEndIndex);
- CPDF_VariableText* m_pVT;
+ CPDF_VariableText* const m_pVT;
};
#endif // CORE_FPDFDOC_CSECTION_H_