dbaccess/source/ui/uno/copytablewizard.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit dfa8dbf98ee872d22bb9e2c63ab07ed76fb81579
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Fri Oct 15 16:32:23 2021 +0200
Commit:     Julien Nabet <serval2...@yahoo.fr>
CommitDate: Fri Oct 15 18:13:10 2021 +0200

    Simplify vector initialization in dbaccess
    
    Change-Id: Iad1f84a9e81c50a007c162a5043343233fdc23a4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123664
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>

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 )
     {

Reply via email to