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 /sfx2 | |
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 'sfx2')
-rw-r--r-- | sfx2/source/appl/shutdownicon.cxx | 5 | ||||
-rw-r--r-- | sfx2/source/dialog/backingwindow.cxx | 18 |
2 files changed, 4 insertions, 19 deletions
diff --git a/sfx2/source/appl/shutdownicon.cxx b/sfx2/source/appl/shutdownicon.cxx index fd81eb41837b..cd031e725e78 100644 --- a/sfx2/source/appl/shutdownicon.cxx +++ b/sfx2/source/appl/shutdownicon.cxx @@ -222,10 +222,7 @@ void ShutdownIcon::FromTemplate() if ( !xDisp.is() ) return; - Sequence<PropertyValue> aArgs(1); - PropertyValue* pArg = aArgs.getArray(); - pArg[0].Name = "Referer"; - pArg[0].Value <<= OUString("private:user"); + Sequence<PropertyValue> aArgs { comphelper::makePropertyValue("Referer", OUString("private:user")) }; css::uno::Reference< css::frame::XNotifyingDispatch > xNotifier(xDisp, UNO_QUERY); if (xNotifier.is()) { diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx index e67eeee27c6b..c3e47f6507fe 100644 --- a/sfx2/source/dialog/backingwindow.cxx +++ b/sfx2/source/dialog/backingwindow.cxx @@ -563,20 +563,13 @@ IMPL_LINK( BackingWindow, ClickHdl, weld::Button&, rButton, void ) { Reference< XDispatchProvider > xFrame( mxFrame, UNO_QUERY ); - Sequence< css::beans::PropertyValue > aArgs(1); - PropertyValue* pArg = aArgs.getArray(); - pArg[0].Name = "Referer"; - pArg[0].Value <<= OUString("private:user"); - - dispatchURL( ".uno:Open", OUString(), xFrame, aArgs ); + dispatchURL( ".uno:Open", OUString(), xFrame, { comphelper::makePropertyValue("Referer", OUString("private:user")) } ); } else if( &rButton == mxRemoteButton.get() ) { Reference< XDispatchProvider > xFrame( mxFrame, UNO_QUERY ); - Sequence< css::beans::PropertyValue > aArgs(0); - - dispatchURL( ".uno:OpenRemote", OUString(), xFrame, aArgs ); + dispatchURL( ".uno:OpenRemote", OUString(), xFrame, {} ); } else if( &rButton == mxRecentButton.get() ) { @@ -631,12 +624,7 @@ IMPL_LINK (BackingWindow, MenuSelectHdl, const OString&, rId, void) { Reference< XDispatchProvider > xFrame( mxFrame, UNO_QUERY ); - Sequence< css::beans::PropertyValue > aArgs(1); - PropertyValue* pArg = aArgs.getArray(); - pArg[0].Name = "Referer"; - pArg[0].Value <<= OUString("private:user"); - - dispatchURL( ".uno:NewDoc", OUString(), xFrame, aArgs ); + dispatchURL( ".uno:NewDoc", OUString(), xFrame, { comphelper::makePropertyValue("Referer", OUString("private:user")) } ); return; } |