diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-10-16 10:16:37 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-10-16 19:05:05 +0200 |
commit | f6a5efc7cde6e7d723e05b866bc6de1bb56913b0 (patch) | |
tree | 7224b816983b0cbbe758dd3b0b466ef6923986b7 /sc/source/ui/vba/vbawindow.cxx | |
parent | 62078c534f96e859d4e8c0ead6337a876344e4ab (diff) |
Simplify vector initialization in sc
Change-Id: If5b7632cfbc81f89d68ce8fbce1fac265e8354fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123692
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sc/source/ui/vba/vbawindow.cxx')
-rw-r--r-- | sc/source/ui/vba/vbawindow.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/vba/vbawindow.cxx b/sc/source/ui/vba/vbawindow.cxx index f43775f1fc88..4bb77c5d8971 100644 --- a/sc/source/ui/vba/vbawindow.cxx +++ b/sc/source/ui/vba/vbawindow.cxx @@ -727,8 +727,7 @@ void SAL_CALL ScVbaWindow::setZoom(const uno::Any& _zoom) SCTAB nTab = 0; if ( !ScVbaWorksheets::nameExists (xSpreadDoc, xActiveSheet->getName(), nTab) ) throw uno::RuntimeException(); - std::vector< SCTAB > vTabs; - vTabs.push_back( nTab ); + std::vector< SCTAB > vTabs { nTab }; excel::implSetZoom( m_xModel, nZoom, vTabs ); } |