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

Unified Diff: fpdfsdk/fxedit/fxet_list.cpp

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/formfiller/cffl_textfield.cpp ('k') | fpdfsdk/fxedit/include/fxet_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/fxedit/fxet_list.cpp
diff --git a/fpdfsdk/fxedit/fxet_list.cpp b/fpdfsdk/fxedit/fxet_list.cpp
index 96fb60dcaaa3efba7346c00d133198c17efadb70..7bf1bd8a272e65abddb39565af412b73cd56e6c8 100644
--- a/fpdfsdk/fxedit/fxet_list.cpp
+++ b/fpdfsdk/fxedit/fxet_list.cpp
@@ -49,7 +49,7 @@ void CFX_ListItem::SetSelect(FX_BOOL bSelected) {
m_bSelected = bSelected;
}
-void CFX_ListItem::SetText(const FX_WCHAR* text) {
+void CFX_ListItem::SetText(const CFX_WideString& text) {
m_pEdit->SetText(text);
}
@@ -396,7 +396,7 @@ int32_t CFX_ListCtrl::GetSelect() const {
return m_nSelItem;
}
-void CFX_ListCtrl::AddString(const FX_WCHAR* str) {
+void CFX_ListCtrl::AddString(const CFX_WideString& str) {
AddItem(str);
ReArrange(GetCount() - 1);
}
@@ -677,7 +677,7 @@ void CFX_ListCtrl::SetFontSize(FX_FLOAT fFontSize) {
m_fFontSize = fFontSize;
}
-void CFX_ListCtrl::AddItem(const FX_WCHAR* str) {
+void CFX_ListCtrl::AddItem(const CFX_WideString& str) {
CFX_ListItem* pListItem = new CFX_ListItem();
pListItem->SetFontMap(m_pFontMap);
pListItem->SetFontSize(m_fFontSize);
« no previous file with comments | « fpdfsdk/formfiller/cffl_textfield.cpp ('k') | fpdfsdk/fxedit/include/fxet_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698