summaryrefslogtreecommitdiff
path: root/fpdfsdk/pdfwindow/PWL_ComboBox.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-09-13 06:46:40 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-13 06:46:40 -0700
commit067990ccf96ae962392a2dbacbfd8348dc4c7676 (patch)
tree5e6a1d32d1b19bc2f7ff4197693d8612737342fc /fpdfsdk/pdfwindow/PWL_ComboBox.h
parentbb8935e9def5ad865be613eebea597a77fc7c547 (diff)
downloadpdfium-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/pdfwindow/PWL_ComboBox.h')
-rw-r--r--fpdfsdk/pdfwindow/PWL_ComboBox.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/fpdfsdk/pdfwindow/PWL_ComboBox.h b/fpdfsdk/pdfwindow/PWL_ComboBox.h
index 02f9d1380a..df9eb5546e 100644
--- a/fpdfsdk/pdfwindow/PWL_ComboBox.h
+++ b/fpdfsdk/pdfwindow/PWL_ComboBox.h
@@ -69,9 +69,8 @@ class CPWL_ComboBox : public CPWL_Wnd {
void SetFillerNotify(IPWL_Filler_Notify* pNotify);
CFX_WideString GetText() const;
- void SetText(const FX_WCHAR* text);
-
- void AddString(const FX_WCHAR* str);
+ void SetText(const CFX_WideString& text);
+ void AddString(const CFX_WideString& str);
int32_t GetSelect() const;
void SetSelect(int32_t nItemIndex);