summaryrefslogtreecommitdiff
path: root/xfa/fde/cfde_txtedtengine.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-08-21 15:32:52 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-23 16:27:49 +0000
commit6c76d50dd9fdd19bdb9c5772ccd8c6d8ae590cad (patch)
treec0cdc8d7b73c76a6270cb665dd086a2244662e4c /xfa/fde/cfde_txtedtengine.h
parent6b0287d245995d04a2a9a44213b22fce9ca8c237 (diff)
downloadpdfium-6c76d50dd9fdd19bdb9c5772ccd8c6d8ae590cad.tar.xz
Cleanup GetPre* methods in CFDE_TextEdtEngine
This CL cleans up the GetPre* methods in CFDE_TextEdtEngine. In particular: * GetPreDeleteText was inlined as it was very simple * GetPreReplaceText was removed as unused * GetPreInsertText was renamed to InsertIntoTextCopy to make clear that this was doing the insert into a copy of the text. Change-Id: Icde0126b6ddb0ec9d4956238ebff53c9fe51c051 Reviewed-on: https://pdfium-review.googlesource.com/11531 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fde/cfde_txtedtengine.h')
-rw-r--r--xfa/fde/cfde_txtedtengine.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/xfa/fde/cfde_txtedtengine.h b/xfa/fde/cfde_txtedtengine.h
index 547cd57eae..f2bc62cd42 100644
--- a/xfa/fde/cfde_txtedtengine.h
+++ b/xfa/fde/cfde_txtedtengine.h
@@ -164,14 +164,9 @@ class CFDE_TxtEdtEngine {
bool IsLocked() const { return m_bLock; }
- CFX_WideString GetPreDeleteText(int32_t nIndex, int32_t nLength);
- CFX_WideString GetPreInsertText(int32_t nIndex,
- const wchar_t* lpText,
- int32_t nLength);
- CFX_WideString GetPreReplaceText(int32_t nIndex,
- int32_t nOriginLength,
- const wchar_t* lpText,
- int32_t nLength);
+ CFX_WideString InsertIntoTextCopy(int32_t nIndex,
+ const wchar_t* lpText,
+ int32_t nLength);
void DeleteRange_DoRecord(int32_t nStart, int32_t nCount, bool bSel);
void ResetEngine();