diff options
author | tsepez <tsepez@chromium.org> | 2016-09-13 06:46:40 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-13 06:46:40 -0700 |
commit | 067990ccf96ae962392a2dbacbfd8348dc4c7676 (patch) | |
tree | 5e6a1d32d1b19bc2f7ff4197693d8612737342fc /fpdfsdk/fxedit/include/fxet_list.h | |
parent | bb8935e9def5ad865be613eebea597a77fc7c547 (diff) | |
download | pdfium-067990ccf96ae962392a2dbacbfd8348dc4c7676.tar.xz |
Stop converting widestring -> c_str -> widestring in several places.
Avoids a needless alloc and copy.
Review-Url: https://codereview.chromium.org/2338553002
Diffstat (limited to 'fpdfsdk/fxedit/include/fxet_list.h')
-rw-r--r-- | fpdfsdk/fxedit/include/fxet_list.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/fxedit/include/fxet_list.h b/fpdfsdk/fxedit/include/fxet_list.h index 2377e1d080..b5cd392eda 100644 --- a/fpdfsdk/fxedit/include/fxet_list.h +++ b/fpdfsdk/fxedit/include/fxet_list.h @@ -105,7 +105,7 @@ class CFX_ListItem final { void SetRect(const CLST_Rect& rect); void SetSelect(FX_BOOL bSelected); - void SetText(const FX_WCHAR* text); + void SetText(const CFX_WideString& text); void SetFontSize(FX_FLOAT fFontSize); CFX_WideString GetText() const; @@ -243,7 +243,7 @@ class CFX_ListCtrl : protected CFX_ListContainer { int32_t GetTopItem() const; CFX_FloatRect GetContentRect() const; int32_t GetItemIndex(const CFX_FloatPoint& point) const; - void AddString(const FX_WCHAR* str); + void AddString(const CFX_WideString& str); void SetTopItem(int32_t nIndex); void Select(int32_t nItemIndex); void SetCaret(int32_t nItemIndex); @@ -281,7 +281,7 @@ class CFX_ListCtrl : protected CFX_ListContainer { FX_BOOL IsItemVisible(int32_t nItemIndex) const; void SetScrollInfo(); void SetScrollPosY(FX_FLOAT fy); - void AddItem(const FX_WCHAR* str); + void AddItem(const CFX_WideString& str); CFX_WideString GetItemText(int32_t nIndex) const; void SetItemSelect(int32_t nItemIndex, FX_BOOL bSelected); int32_t GetLastSelected() const; |