summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--connectivity/source/drivers/file/FResultSet.cxx6
-rw-r--r--connectivity/source/inc/file/FResultSet.hxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/drivers/file/FResultSet.cxx b/connectivity/source/drivers/file/FResultSet.cxx
index f2610657bf07..5d5abc50afb1 100644
--- a/connectivity/source/drivers/file/FResultSet.cxx
+++ b/connectivity/source/drivers/file/FResultSet.cxx
@@ -149,7 +149,7 @@ void OResultSet::disposing()
m_pTable.clear();
m_pFileSet = nullptr;
- DELETEZ(m_pSortIndex);
+ m_pSortIndex.reset();
if(m_aInsertRow.is())
m_aInsertRow->get().clear();
@@ -1147,7 +1147,7 @@ void OResultSet::sortRows()
++i;
}
- m_pSortIndex = new OSortIndex(eKeyType,m_aOrderbyAscending);
+ m_pSortIndex.reset(new OSortIndex(eKeyType,m_aOrderbyAscending));
while ( ExecuteRow( IResultSetHelper::NEXT, 1, false ) )
{
@@ -1161,7 +1161,7 @@ void OResultSet::sortRows()
// create sorted Keyset
m_pFileSet = nullptr;
m_pFileSet = m_pSortIndex->CreateKeySet();
- DELETEZ(m_pSortIndex);
+ m_pSortIndex.reset();
// now access to a sorted set is possible via Index
}
diff --git a/connectivity/source/inc/file/FResultSet.hxx b/connectivity/source/inc/file/FResultSet.hxx
index fae15e2c3bf2..d223c0909d4e 100644
--- a/connectivity/source/inc/file/FResultSet.hxx
+++ b/connectivity/source/inc/file/FResultSet.hxx
@@ -86,7 +86,7 @@ namespace connectivity
OKeySet::Vector::iterator m_aFileSetIter;
- OSortIndex* m_pSortIndex;
+ std::unique_ptr<OSortIndex> m_pSortIndex;
::rtl::Reference<connectivity::OSQLColumns> m_xColumns; // this are the select columns
::rtl::Reference<connectivity::OSQLColumns> m_xParamColumns;
rtl::Reference<OFileTable> m_pTable;