diff options
author | Jane Liu <janeliulwq@google.com> | 2017-08-21 10:26:25 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-21 15:18:36 +0000 |
commit | 3fa212abba3b6977a4e47981116bb0a3f4017221 (patch) | |
tree | bcf288f01955521b52d9806f510ea9a4d14bd6b2 /xfa/fde/cfde_txtedtbuf.h | |
parent | 69ad278881f83a1f8cf45d5a42a88752c0871c7e (diff) | |
download | pdfium-3fa212abba3b6977a4e47981116bb0a3f4017221.tar.xz |
Converted CFDE_TxtEdt{Buf|Engine}::Insert() to take CFX_WideString
Converted CFDE_TxtEdtBuf::Insert(), CFDE_TxtEdtEngine::Insert(), and
CFDE_TxtEdtEngine::Inner_Insert() to take in CFX_WideString instead of
a wchar_t* and length.
Bug=pdfium:757
Change-Id: I6097e9b0d4e584b920b2117b4c5489eedef37767
Reviewed-on: https://pdfium-review.googlesource.com/11411
Commit-Queue: Jane Liu <janeliulwq@google.com>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fde/cfde_txtedtbuf.h')
-rw-r--r-- | xfa/fde/cfde_txtedtbuf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fde/cfde_txtedtbuf.h b/xfa/fde/cfde_txtedtbuf.h index f6d9ffc8c9..b28e4a434e 100644 --- a/xfa/fde/cfde_txtedtbuf.h +++ b/xfa/fde/cfde_txtedtbuf.h @@ -49,7 +49,7 @@ class CFDE_TxtEdtBuf { wchar_t GetCharByIndex(int32_t nIndex) const; CFX_WideString GetRange(int32_t nBegin, int32_t nCount) const; - void Insert(int32_t nPos, const wchar_t* lpText, int32_t nLength); + void Insert(int32_t nPos, const CFX_WideString& wsText); void Delete(int32_t nIndex, int32_t nLength); void Clear(bool bRelease); |