diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-02-07 17:53:59 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-02-09 13:49:19 +0000 |
commit | d15d523d071df29879613e21bcb72eec6dfbe57f (patch) | |
tree | 3be9fc90cd92fbf8a1a8eb9a4d90ae631f2561b8 /dbaccess | |
parent | 678e0ea1472478d248d1a45c1e0ade5ed84f9d46 (diff) |
sequence->vector in OCacheSet
Change-Id: I61c6486d42dbc404355809a80943885457e79384
Reviewed-on: https://gerrit.libreoffice.org/22184
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/api/CacheSet.cxx | 12 | ||||
-rw-r--r-- | dbaccess/source/core/api/CacheSet.hxx | 6 |
2 files changed, 9 insertions, 9 deletions
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<sal_Bool> m_aNullable; - css::uno::Sequence<sal_Bool> m_aSignedFlags; - css::uno::Sequence<sal_Int32> m_aColumnTypes; + std::vector<bool> m_aNullable; + std::vector<bool> m_aSignedFlags; + std::vector<sal_Int32> m_aColumnTypes; OUString m_aComposedTableName; sal_Int32 m_nMaxRows; bool m_bInserted; |