summaryrefslogtreecommitdiff
path: root/reportdesign/source
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2024-04-09 17:52:57 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-04-10 10:18:47 +0200
commit78833978264581f1e7f485526c8ef0e0e34afe56 (patch)
tree792b86432e57d8d1e1675127ac14f3091b5edba8 /reportdesign/source
parent1dd0d2ce717c2805b52fd59804cf0ea3f7d872c3 (diff)
simplify OGenericUnoController init
Change-Id: I9053e8f320b140bbb6907daac61939258245ff7f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165913 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign/source')
-rw-r--r--reportdesign/source/ui/inc/ReportController.hxx2
-rw-r--r--reportdesign/source/ui/report/ReportController.cxx6
2 files changed, 3 insertions, 5 deletions
diff --git a/reportdesign/source/ui/inc/ReportController.hxx b/reportdesign/source/ui/inc/ReportController.hxx
index 726ac8012370..fe73fe278242 100644
--- a/reportdesign/source/ui/inc/ReportController.hxx
+++ b/reportdesign/source/ui/inc/ReportController.hxx
@@ -274,7 +274,7 @@ namespace rptui
virtual void impl_onModifyChanged() override;
virtual void onLoadedMenu( const css::uno::Reference< css::frame::XLayoutManager >& _xLayoutManager ) override;
- virtual void impl_initialize( ) override;
+ virtual void impl_initialize( const ::comphelper::NamedValueCollection& rArguments ) override;
bool isUiVisible() const;
/** creates a new default control for the currently set type when the modifier KEY_MOD1 was pressed
diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx
index 6a6db230034f..06c8e4ff25bf 100644
--- a/reportdesign/source/ui/report/ReportController.cxx
+++ b/reportdesign/source/ui/report/ReportController.cxx
@@ -1635,11 +1635,9 @@ void OReportController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >
InvalidateFeature(_nId,Reference< XStatusListener >(),bForceBroadcast);
}
-void OReportController::impl_initialize( )
+void OReportController::impl_initialize( const ::comphelper::NamedValueCollection& rArguments )
{
- OReportController_BASE::impl_initialize();
-
- const ::comphelper::NamedValueCollection& rArguments( getInitParams() );
+ OReportController_BASE::impl_initialize(rArguments);
rArguments.get_ensureType( PROPERTY_REPORTNAME, m_sName );
if ( m_sName.isEmpty() )