diff options
author | Lei Zhang <thestig@chromium.org> | 2018-04-17 14:54:40 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-17 14:54:40 +0000 |
commit | 3900ddb64f30f36fd6696bd2927cf8f151e6ede9 (patch) | |
tree | c73d361ea40fe4206f100c90fd2442afa49a47ab /fpdfsdk/pwl/cpwl_combo_box.cpp | |
parent | 6b26e1ae69321717c5ce098a1cd2c9f3e1099344 (diff) | |
download | pdfium-3900ddb64f30f36fd6696bd2927cf8f151e6ede9.tar.xz |
Add a virtual CPWL_Wnd::GetText() method.
Most CPWL_Wnd subclasses already have GetText() implementations.
Change-Id: I61858019c59f915df422afaca97b8abde345575b
Reviewed-on: https://pdfium-review.googlesource.com/30860
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/pwl/cpwl_combo_box.cpp')
-rw-r--r-- | fpdfsdk/pwl/cpwl_combo_box.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fpdfsdk/pwl/cpwl_combo_box.cpp b/fpdfsdk/pwl/cpwl_combo_box.cpp index 3adbebcadb..1576b022fd 100644 --- a/fpdfsdk/pwl/cpwl_combo_box.cpp +++ b/fpdfsdk/pwl/cpwl_combo_box.cpp @@ -196,11 +196,8 @@ void CPWL_ComboBox::ReplaceSelection(const WideString& text) { m_pEdit->ReplaceSelection(text); } -WideString CPWL_ComboBox::GetText() const { - if (m_pEdit) { - return m_pEdit->GetText(); - } - return WideString(); +WideString CPWL_ComboBox::GetText() { + return m_pEdit ? m_pEdit->GetText() : WideString(); } void CPWL_ComboBox::SetText(const WideString& text) { |