diff options
Diffstat (limited to 'dbaccess/source/core/api/TableDeco.cxx')
-rw-r--r-- | dbaccess/source/core/api/TableDeco.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/dbaccess/source/core/api/TableDeco.cxx b/dbaccess/source/core/api/TableDeco.cxx index 60cbce747e01..f40593b8598d 100644 --- a/dbaccess/source/core/api/TableDeco.cxx +++ b/dbaccess/source/core/api/TableDeco.cxx @@ -532,11 +532,8 @@ void ODBTableDecorator::refreshColumns() xNames = m_xTable->getColumns(); if(xNames.is()) { - Sequence< OUString> aNames = xNames->getElementNames(); - const OUString* pIter = aNames.getConstArray(); - const OUString* pEnd = pIter + aNames.getLength(); - for(;pIter != pEnd;++pIter) - aVector.push_back(*pIter); + const Sequence< OUString> aNames = xNames->getElementNames(); + aVector.insert(aVector.end(), aNames.begin(), aNames.end()); } } if(!m_pColumns) |