From 0c7ac93103f69373a7e7639f4cf3ad464c0b727e Mon Sep 17 00:00:00 2001 From: Noel Date: Tue, 17 Nov 2020 10:09:40 +0200 Subject: loplugin:stringviewparam extend to constructors Change-Id: Ia573921566ec6079b843cbcc0401d9d0f5c62089 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105969 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/ui/dbgui/sortdlg.cxx | 2 +- sc/source/ui/inc/sortdlg.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sc') diff --git a/sc/source/ui/dbgui/sortdlg.cxx b/sc/source/ui/dbgui/sortdlg.cxx index 0af20114ee10..4c5f5c18e00c 100644 --- a/sc/source/ui/dbgui/sortdlg.cxx +++ b/sc/source/ui/dbgui/sortdlg.cxx @@ -33,7 +33,7 @@ ScSortDlg::ScSortDlg(weld::Window* pParent, const SfxItemSet* pArgSet) } ScSortWarningDlg::ScSortWarningDlg(weld::Window* pParent, - const OUString& rExtendText, const OUString& rCurrentText) + std::u16string_view rExtendText, std::u16string_view rCurrentText) : GenericDialogController(pParent, "modules/scalc/ui/sortwarning.ui", "SortWarning") , m_xFtText(m_xBuilder->weld_label("sorttext")) , m_xBtnExtSort(m_xBuilder->weld_button("extend")) diff --git a/sc/source/ui/inc/sortdlg.hxx b/sc/source/ui/inc/sortdlg.hxx index c45143296347..a68e81e34241 100644 --- a/sc/source/ui/inc/sortdlg.hxx +++ b/sc/source/ui/inc/sortdlg.hxx @@ -41,7 +41,7 @@ private: class ScSortWarningDlg : public weld::GenericDialogController { public: - ScSortWarningDlg(weld::Window* pParent, const OUString& rExtendText,const OUString& rCurrentText); + ScSortWarningDlg(weld::Window* pParent, std::u16string_view rExtendText, std::u16string_view rCurrentText); virtual ~ScSortWarningDlg() override; DECL_LINK(BtnHdl, weld::Button&, void); private: -- cgit