diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-10-16 10:14:28 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-10-16 13:23:30 +0200 |
commit | 604d464d2bdd0271ad63e5c93d4869a318eac262 (patch) | |
tree | 436481ed20c6b2af197a7965eda476af9ad970cc /desktop | |
parent | 4fd5dc6340ecd6ac09f239507622152691911d59 (diff) |
Simplify vector initialization in desktop
Change-Id: Ia7c99cb9c0e8be7299bc664b80cc8932d2766469
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123683
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/app.cxx | 3 | ||||
-rw-r--r-- | desktop/source/deployment/gui/dp_gui_dialog2.cxx | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index bd5476af896d..a026a1ede209 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -1047,8 +1047,7 @@ void restartOnMac(bool passArguments) { { std::abort(); } - std::vector< OString > args; - args.push_back(execPath8); + std::vector< OString > args { execPath8 }; bool wait = false; if (passArguments) { sal_uInt32 n = osl_getCommandArgCount(); diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx index 6d318726bb9f..3169904aa4a6 100644 --- a/desktop/source/deployment/gui/dp_gui_dialog2.cxx +++ b/desktop/source/deployment/gui/dp_gui_dialog2.cxx @@ -592,8 +592,7 @@ void ExtMgrDialog::updatePackage( const uno::Reference< deployment::XPackage > & uno::Reference<deployment::XPackage> extension = dp_misc::getExtensionWithHighestVersion(seqExtensions); OSL_ASSERT(extension.is()); - std::vector< css::uno::Reference< css::deployment::XPackage > > vEntries; - vEntries.push_back(extension); + std::vector< css::uno::Reference< css::deployment::XPackage > > vEntries { extension }; m_pManager->getCmdQueue()->checkForUpdates( std::move(vEntries) ); } |