From d15d523d071df29879613e21bcb72eec6dfbe57f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 7 Feb 2016 17:53:59 +0200 Subject: sequence->vector in OCacheSet Change-Id: I61c6486d42dbc404355809a80943885457e79384 Reviewed-on: https://gerrit.libreoffice.org/22184 Tested-by: Jenkins Reviewed-by: Noel Grandin --- dbaccess/source/core/api/CacheSet.cxx | 12 ++++++------ dbaccess/source/core/api/CacheSet.hxx | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'dbaccess') diff --git a/dbaccess/source/core/api/CacheSet.cxx b/dbaccess/source/core/api/CacheSet.cxx index 29be97062752..8853a653a03c 100644 --- a/dbaccess/source/core/api/CacheSet.cxx +++ b/dbaccess/source/core/api/CacheSet.cxx @@ -88,12 +88,12 @@ void OCacheSet::construct( const Reference< XResultSet>& _xDriverSet,const OUSt if ( m_xSetMetaData.is() ) { const sal_Int32 nCount = m_xSetMetaData->getColumnCount(); - m_aNullable.realloc(nCount); - m_aSignedFlags.realloc(nCount); - m_aColumnTypes.realloc(nCount); - sal_Bool* pNullableIter = m_aNullable.getArray(); - sal_Bool* pSignedIter = m_aSignedFlags.getArray(); - sal_Int32* pColumnIter = m_aColumnTypes.getArray(); + m_aNullable.resize(nCount); + m_aSignedFlags.resize(nCount); + m_aColumnTypes.resize(nCount); + auto pNullableIter = m_aNullable.begin(); + auto pSignedIter = m_aSignedFlags.begin(); + auto pColumnIter = m_aColumnTypes.begin(); for (sal_Int32 i=1; i <= nCount; ++i,++pSignedIter,++pColumnIter,++pNullableIter) { *pNullableIter = m_xSetMetaData->isNullable(i) != ColumnValue::NO_NULLS; diff --git a/dbaccess/source/core/api/CacheSet.hxx b/dbaccess/source/core/api/CacheSet.hxx index 5047fbcd9995..f543840ff615 100644 --- a/dbaccess/source/core/api/CacheSet.hxx +++ b/dbaccess/source/core/api/CacheSet.hxx @@ -44,9 +44,9 @@ namespace dbaccess css::uno::Reference< css::sdbc::XResultSetMetaData> m_xSetMetaData; css::uno::Reference< css::sdbc::XConnection> m_xConnection; - css::uno::Sequence m_aNullable; - css::uno::Sequence m_aSignedFlags; - css::uno::Sequence m_aColumnTypes; + std::vector m_aNullable; + std::vector m_aSignedFlags; + std::vector m_aColumnTypes; OUString m_aComposedTableName; sal_Int32 m_nMaxRows; bool m_bInserted; -- cgit