diff options
Diffstat (limited to 'connectivity/source/drivers/dbase/DResultSet.cxx')
-rw-r--r-- | connectivity/source/drivers/dbase/DResultSet.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/connectivity/source/drivers/dbase/DResultSet.cxx b/connectivity/source/drivers/dbase/DResultSet.cxx index 7e41b2402af5..5d5b7b3122e5 100644 --- a/connectivity/source/drivers/dbase/DResultSet.cxx +++ b/connectivity/source/drivers/dbase/DResultSet.cxx @@ -163,7 +163,7 @@ bool ODbaseResultSet::fillIndexValues(const Reference< XColumnsSupplier> &_xInde dbase::ODbaseIndex* pIndex = reinterpret_cast< dbase::ODbaseIndex* >( xTunnel->getSomething(dbase::ODbaseIndex::getUnoTunnelImplementationId()) ); if(pIndex) { - dbase::OIndexIterator* pIter = pIndex->createIterator(); + std::unique_ptr<dbase::OIndexIterator> pIter = pIndex->createIterator(); if (pIter) { @@ -174,7 +174,6 @@ bool ODbaseResultSet::fillIndexValues(const Reference< XColumnsSupplier> &_xInde nRec = pIter->Next(); } m_pFileSet->setFrozen(); - delete pIter; return true; } } |