diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2022-02-07 20:27:56 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2022-02-08 07:04:02 +0100 |
commit | a7c9980a4a6bb1f547c0c4a7b554ac9afe7b25fc (patch) | |
tree | 831d927883bb1ff687da6a210098ed5157091899 /reportdesign/source | |
parent | 6a031514a922dd3c53d96f4d4980e7f8ee598507 (diff) |
Simplify sequence of PropertyValue in linguisting/reportdesign/sc/sfx2
Change-Id: Icd19a46f59e7b4e9ef4062354c5d066382ea8ade
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129644
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'reportdesign/source')
-rw-r--r-- | reportdesign/source/ui/report/ReportController.cxx | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx index b845623ed0fa..91b0dc9cf03e 100644 --- a/reportdesign/source/ui/report/ReportController.cxx +++ b/reportdesign/source/ui/report/ReportController.cxx @@ -1701,9 +1701,7 @@ void OReportController::impl_initialize( ) const OReportPage* pPage = dynamic_cast<OReportPage*>(m_aReportModel->GetPage(static_cast<sal_uInt16>(m_nPageNum))); if ( pPage ) { - uno::Sequence< beans::PropertyValue> aArgs(1); - aArgs.getArray()[0].Value <<= pPage->getSection(); - executeUnChecked(SID_SELECT,aArgs); + executeUnChecked(SID_SELECT,{ comphelper::makePropertyValue("", pPage->getSection() ) }); } } else @@ -1719,8 +1717,7 @@ void OReportController::impl_initialize( ) { m_sLastActivePage = "Data"; getDesignView()->setCurrentPage(m_sLastActivePage); - uno::Sequence< beans::PropertyValue> aArgs; - executeUnChecked(SID_SELECT_REPORT,aArgs); + executeUnChecked(SID_SELECT_REPORT,{}); } setModified(false); // and we are not modified yet @@ -2790,8 +2787,7 @@ void SAL_CALL OReportController::restoreViewData(const uno::Any& i_data) util::URL aCommand; aCommand.Complete = ".uno:" + rCommandName; - Sequence aCommandArgs{ comphelper::makePropertyValue("Value", rCommandValue) }; - executeUnChecked( aCommand, aCommandArgs ); + executeUnChecked( aCommand, { comphelper::makePropertyValue("Value", rCommandValue) } ); } else { @@ -2866,7 +2862,7 @@ uno::Reference<frame::XModel> OReportController::executeReport() if (pErrorId != RID_ERR_NO_COMMAND) { if ( !m_bShowProperties ) - executeUnChecked(SID_SHOW_PROPERTYBROWSER,uno::Sequence< beans::PropertyValue>()); + executeUnChecked(SID_SHOW_PROPERTYBROWSER, {}); m_sLastActivePage = "Data"; getDesignView()->setCurrentPage(m_sLastActivePage); @@ -2878,8 +2874,7 @@ uno::Reference<frame::XModel> OReportController::executeReport() } if ( nCommand ) { - uno::Sequence< beans::PropertyValue> aArgs; - executeUnChecked(nCommand,aArgs); + executeUnChecked(nCommand, {}); } } } |