From 0354ccf37f05f25b1bf64fd60bb3b48efab4d7d0 Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Thu, 24 Nov 2016 10:45:29 -0500 Subject: Change TxtEdtEngine to return CFX_WideString MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This Cl updates the TxtEdtEngine and TxtEdtBuf to return CFX_WideStrings on a Get instead of taking an out param. The change is propagated out through the various Get methods that call into the edit engine. Change-Id: Iccf10a8ee06678ae3b59f3afd6e65308dacd16bd Reviewed-on: https://pdfium-review.googlesource.com/2070 Commit-Queue: ooo 11-24 -- 12-05 (dsinclair) Reviewed-by: Nicolás Peña --- xfa/fde/cfde_txtedtbuf.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'xfa/fde/cfde_txtedtbuf.h') diff --git a/xfa/fde/cfde_txtedtbuf.h b/xfa/fde/cfde_txtedtbuf.h index f85dcb352a..ac25a080e5 100644 --- a/xfa/fde/cfde_txtedtbuf.h +++ b/xfa/fde/cfde_txtedtbuf.h @@ -23,11 +23,9 @@ class CFDE_TxtEdtBuf { int32_t GetChunkSize() const; int32_t GetTextLength() const; void SetText(const CFX_WideString& wsText); - void GetText(CFX_WideString& wsText) const; + CFX_WideString GetText() const; FX_WCHAR GetCharByIndex(int32_t nIndex) const; - void GetRange(CFX_WideString& wsText, - int32_t nBegin, - int32_t nCount = -1) const; + CFX_WideString GetRange(int32_t nBegin, int32_t nCount = -1) const; void Insert(int32_t nPos, const FX_WCHAR* lpText, int32_t nLength = 1); void Delete(int32_t nIndex, int32_t nLength = 1); -- cgit v1.2.3