diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-08-16 16:37:37 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-17 15:42:24 +0000 |
commit | e30e9cc05b62b046e5299ecc058957d93d2c68ea (patch) | |
tree | 28c192b5ecec3ca490082e0bfe435e895cf67dc4 /xfa/fde/cfde_txtedtengine.h | |
parent | b3e7bfa6ed35651a22df314352883ccb44a7203d (diff) | |
download | pdfium-e30e9cc05b62b046e5299ecc058957d93d2c68ea.tar.xz |
Unify GetTextLength and GetTextBufLength in CFDE_TxtEdtEngine
The GetTextLength method just proxies to GetTextBufLength. This CL
removes GetTextBufLength and puts the functionality into GetTextLength.
Change-Id: If324fbeddd05cd63570b6942dc613e273a1fbce7
Reviewed-on: https://pdfium-review.googlesource.com/11272
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fde/cfde_txtedtengine.h')
-rw-r--r-- | xfa/fde/cfde_txtedtengine.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xfa/fde/cfde_txtedtengine.h b/xfa/fde/cfde_txtedtengine.h index c68227b243..19aed3fe7b 100644 --- a/xfa/fde/cfde_txtedtengine.h +++ b/xfa/fde/cfde_txtedtengine.h @@ -100,7 +100,7 @@ class CFDE_TxtEdtEngine { CFDE_TxtEdtPage* GetPage(int32_t nIndex); void SetText(const CFX_WideString& wsText); - int32_t GetTextLength() const { return GetTextBufLength(); } + int32_t GetTextLength() const { return m_pTxtBuf->GetTextLength() - 1; } CFX_WideString GetText(int32_t nStart, int32_t nCount) const; void ClearText(); @@ -136,7 +136,6 @@ class CFDE_TxtEdtEngine { return m_ParagPtrArray[nParagIndex].get(); } CFDE_TxtEdtBuf* GetTextBuf() const { return m_pTxtBuf.get(); } - int32_t GetTextBufLength() const { return m_pTxtBuf->GetTextLength() - 1; } CFX_TxtBreak* GetTextBreak() const { return m_pTextBreak.get(); } int32_t GetLineCount() const { return m_nLineCount; } |