summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-11-17 10:09:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-17 12:12:03 +0100
commit0c7ac93103f69373a7e7639f4cf3ad464c0b727e (patch)
tree7d814c59be4e23b03cb266e3c797af0dcd927139 /sc
parent0979798658ff536defe537f57cc6b32278d32414 (diff)
loplugin:stringviewparam extend to constructors
Change-Id: Ia573921566ec6079b843cbcc0401d9d0f5c62089 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105969 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/dbgui/sortdlg.cxx2
-rw-r--r--sc/source/ui/inc/sortdlg.hxx2
2 files changed, 2 insertions, 2 deletions
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: