Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: fpdfsdk/fxedit/include/fxet_list.h

Issue 2338553002: Stop converting widestring -> c_str -> widestring in several places. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fpdfsdk/fxedit/fxet_list.cpp ('k') | fpdfsdk/pdfwindow/PWL_ComboBox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/fxedit/include/fxet_list.h
diff --git a/fpdfsdk/fxedit/include/fxet_list.h b/fpdfsdk/fxedit/include/fxet_list.h
index 2377e1d080fd4824d3405eaff8c1322964254fa6..b5cd392eda2702b86a1fc607a8ac3dea98fa4bb5 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;
« no previous file with comments | « fpdfsdk/fxedit/fxet_list.cpp ('k') | fpdfsdk/pdfwindow/PWL_ComboBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698