From 3fa212abba3b6977a4e47981116bb0a3f4017221 Mon Sep 17 00:00:00 2001 From: Jane Liu Date: Mon, 21 Aug 2017 10:26:25 -0400 Subject: 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 Commit-Queue: dsinclair Reviewed-by: dsinclair --- xfa/fde/cfde_txtedtbuf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/fde/cfde_txtedtbuf.h') 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); -- cgit v1.2.3