diff options
author | Ryan Harrison <rharrison@chromium.org> | 2018-01-05 15:40:40 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-05 20:55:18 +0000 |
commit | 245f80c4ae2bde11de8fdff54e736ec4e4296e0a (patch) | |
tree | 4e62bab9aabd17eb1f69e95f9755d5ddb2b144f2 /xfa/fwl/cfwl_combobox.h | |
parent | a172cfb094fe1012d71d556552977c86f2ae639d (diff) | |
download | pdfium-245f80c4ae2bde11de8fdff54e736ec4e4296e0a.tar.xz |
Convert CFWL_Edit Cut & Copy out param to return
Change-Id: I99776deb809609f69275848ddb81706e2cc82c82
Reviewed-on: https://pdfium-review.googlesource.com/22370
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fwl/cfwl_combobox.h')
-rw-r--r-- | xfa/fwl/cfwl_combobox.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fwl/cfwl_combobox.h b/xfa/fwl/cfwl_combobox.h index 923e2d8b9a..a9dc635373 100644 --- a/xfa/fwl/cfwl_combobox.h +++ b/xfa/fwl/cfwl_combobox.h @@ -83,8 +83,8 @@ class CFWL_ComboBox : public CFWL_Widget { return EditCanCopy(); } bool EditCanSelectAll() const { return m_pEdit->GetTextLength() > 0; } - bool EditCopy(WideString& wsCopy) const { return m_pEdit->Copy(wsCopy); } - bool EditCut(WideString& wsCut) { return m_pEdit->Cut(wsCut); } + Optional<WideString> EditCopy() const { return m_pEdit->Copy(); } + Optional<WideString> EditCut() { return m_pEdit->Cut(); } bool EditPaste(const WideString& wsPaste) { return m_pEdit->Paste(wsPaste); } void EditSelectAll() { m_pEdit->SelectAll(); } void EditDelete() { m_pEdit->ClearText(); } |