summaryrefslogtreecommitdiffstats
path: root/dbaccess/source
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-10-15 16:32:23 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-10-15 18:13:10 +0200
commitdfa8dbf98ee872d22bb9e2c63ab07ed76fb81579 (patch)
tree125f36bda471f6fb4aa5dc32338355d4fad0f395 /dbaccess/source
parentSimplify vector initialization in chart2 (diff)
downloadcore-dfa8dbf98ee872d22bb9e2c63ab07ed76fb81579.tar.gz
core-dfa8dbf98ee872d22bb9e2c63ab07ed76fb81579.zip
Simplify vector initialization in dbaccess
Change-Id: Iad1f84a9e81c50a007c162a5043343233fdc23a4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123664 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'dbaccess/source')
-rw-r--r--dbaccess/source/ui/uno/copytablewizard.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/dbaccess/source/ui/uno/copytablewizard.cxx b/dbaccess/source/ui/uno/copytablewizard.cxx
index 40443652705b..48aaabdf42ff 100644
--- a/dbaccess/source/ui/uno/copytablewizard.cxx
+++ b/dbaccess/source/ui/uno/copytablewizard.cxx
@@ -1077,13 +1077,11 @@ void CopyTableWizard::impl_copyRows_throw( const Reference< XResultSet >& _rxSou
// we need a vector which all types
sal_Int32 nCount = xMeta->getColumnCount();
- std::vector< sal_Int32 > aSourceColTypes;
+ std::vector< sal_Int32 > aSourceColTypes { -1 };// just to avoid an every time i-1 call
aSourceColTypes.reserve( nCount + 1 );
- aSourceColTypes.push_back( -1 ); // just to avoid an every time i-1 call
- std::vector< sal_Int32 > aSourcePrec;
+ std::vector< sal_Int32 > aSourcePrec { -1 }; // just to avoid an every time i-1 call
aSourcePrec.reserve( nCount + 1 );
- aSourcePrec.push_back( -1 ); // just to avoid an every time i-1 call
for ( sal_Int32 k=1; k <= nCount; ++k )
{