diff options
Diffstat (limited to 'dbaccess/source/ui/uno/copytablewizard.cxx')
-rw-r--r-- | dbaccess/source/ui/uno/copytablewizard.cxx | 6 |
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 ) { |