summaryrefslogtreecommitdiff
path: root/xfa/fwl
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-04-15 16:04:24 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-15 16:04:24 -0700
commit31e446374a7cf3f3353e42a03b6d5297e5cd60ec (patch)
tree4897c8f76e3ad9b4f6eff3097e752247e8b41047 /xfa/fwl
parent2ba3dc72f73f8e6cdd0423d02a12528096c2d90a (diff)
downloadpdfium-31e446374a7cf3f3353e42a03b6d5297e5cd60ec.tar.xz
Avoid narrowing of strings in FWL SetEditText methods.
Review URL: https://codereview.chromium.org/1892813004
Diffstat (limited to 'xfa/fwl')
-rw-r--r--xfa/fwl/lightwidget/cfwl_combobox.cpp2
-rw-r--r--xfa/fwl/lightwidget/cfwl_combobox.h2
-rw-r--r--xfa/fwl/lightwidget/cfwl_datetimepicker.cpp2
-rw-r--r--xfa/fwl/lightwidget/cfwl_datetimepicker.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fwl/lightwidget/cfwl_combobox.cpp b/xfa/fwl/lightwidget/cfwl_combobox.cpp
index bdcc36fa30..f2cd1f5d6b 100644
--- a/xfa/fwl/lightwidget/cfwl_combobox.cpp
+++ b/xfa/fwl/lightwidget/cfwl_combobox.cpp
@@ -88,7 +88,7 @@ FWL_ERR CFWL_ComboBox::SetCurSel(int32_t iSel) {
return static_cast<IFWL_ComboBox*>(m_pIface)->SetCurSel(iSel);
}
-FWL_ERR CFWL_ComboBox::SetEditText(const CFX_WideStringC& wsText) {
+FWL_ERR CFWL_ComboBox::SetEditText(const CFX_WideString& wsText) {
if (!m_pIface)
return FWL_ERR_Indefinite;
return static_cast<IFWL_ComboBox*>(m_pIface)->SetEditText(wsText);
diff --git a/xfa/fwl/lightwidget/cfwl_combobox.h b/xfa/fwl/lightwidget/cfwl_combobox.h
index 59b542c453..c92a063cdf 100644
--- a/xfa/fwl/lightwidget/cfwl_combobox.h
+++ b/xfa/fwl/lightwidget/cfwl_combobox.h
@@ -30,7 +30,7 @@ class CFWL_ComboBox : public CFWL_Widget {
FWL_ERR GetTextByIndex(int32_t iIndex, CFX_WideString& wsText);
int32_t GetCurSel();
FWL_ERR SetCurSel(int32_t iSel);
- FWL_ERR SetEditText(const CFX_WideStringC& wsText);
+ FWL_ERR SetEditText(const CFX_WideString& wsText);
int32_t GetEditTextLength() const;
FWL_ERR GetEditText(CFX_WideString& wsText,
int32_t nStart = 0,
diff --git a/xfa/fwl/lightwidget/cfwl_datetimepicker.cpp b/xfa/fwl/lightwidget/cfwl_datetimepicker.cpp
index e470616ed8..ba99ad8551 100644
--- a/xfa/fwl/lightwidget/cfwl_datetimepicker.cpp
+++ b/xfa/fwl/lightwidget/cfwl_datetimepicker.cpp
@@ -58,7 +58,7 @@ FWL_ERR CFWL_DateTimePicker::GetEditText(CFX_WideString& wsText) {
return static_cast<IFWL_DateTimePicker*>(m_pIface)->GetEditText(wsText);
}
-FWL_ERR CFWL_DateTimePicker::SetEditText(const CFX_WideStringC& wsText) {
+FWL_ERR CFWL_DateTimePicker::SetEditText(const CFX_WideString& wsText) {
return static_cast<IFWL_DateTimePicker*>(m_pIface)->SetEditText(wsText);
}
diff --git a/xfa/fwl/lightwidget/cfwl_datetimepicker.h b/xfa/fwl/lightwidget/cfwl_datetimepicker.h
index a96ac532c1..befe57a079 100644
--- a/xfa/fwl/lightwidget/cfwl_datetimepicker.h
+++ b/xfa/fwl/lightwidget/cfwl_datetimepicker.h
@@ -16,7 +16,7 @@ class CFWL_DateTimePicker : public CFWL_Widget {
FWL_ERR Initialize(const CFWL_WidgetProperties* pProperties = NULL);
FWL_ERR SetToday(int32_t iYear, int32_t iMonth, int32_t iDay);
FWL_ERR GetEditText(CFX_WideString& wsText);
- FWL_ERR SetEditText(const CFX_WideStringC& wsText);
+ FWL_ERR SetEditText(const CFX_WideString& wsText);
int32_t CountSelRanges();
int32_t GetSelRange(int32_t nIndex, int32_t& nStart);
FWL_ERR GetCurSel(int32_t& iYear, int32_t& iMonth, int32_t& iDay);