diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-24 15:40:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-24 18:23:51 +0200 |
commit | 1c57c295e86676d9cfe5aa72f55dbd5d24cc7930 (patch) | |
tree | 55a5a4d81564357c50fe6f458e48e8cb0d1811cf /reportdesign/source/ui/report/ReportSection.cxx | |
parent | 72412c5773152a8023530b9807a42d7588f76f2b (diff) |
clang-tidy modernize-pass-by-value in reportdesign
Change-Id: I2c005a2f66139237cb1ebf09812f31fb08f53c90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136397
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign/source/ui/report/ReportSection.cxx')
-rw-r--r-- | reportdesign/source/ui/report/ReportSection.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/reportdesign/source/ui/report/ReportSection.cxx b/reportdesign/source/ui/report/ReportSection.cxx index 95d063c1d9e2..ebbbad48c2e9 100644 --- a/reportdesign/source/ui/report/ReportSection.cxx +++ b/reportdesign/source/ui/report/ReportSection.cxx @@ -50,6 +50,7 @@ #include <dlgedclip.hxx> #include <rptui_slotid.hrc> +#include <utility> #include <vcl/commandevent.hxx> #include <o3tl/safeint.hxx> @@ -69,14 +70,14 @@ static Color lcl_getOverlappedControlColor(/*const uno::Reference <lang::XMultiS return aConfig.GetColorValue(CFG_REPORTDESIGNER, DBOVERLAPPEDCONTROL).getColor(); } -OReportSection::OReportSection(OSectionWindow* _pParent,const uno::Reference< report::XSection >& _xSection) +OReportSection::OReportSection(OSectionWindow* _pParent,uno::Reference< report::XSection > _xSection) : Window(_pParent,WB_DIALOGCONTROL) , ::comphelper::OPropertyChangeListener(m_aMutex) , DropTargetHelper(this) , m_pPage(nullptr) , m_pView(nullptr) , m_pParent(_pParent) - , m_xSection(_xSection) + , m_xSection(std::move(_xSection)) , m_nPaintEntranceCount(0) , m_eMode(DlgEdMode::Select) { |