summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/macab/macaborder.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/connectivity/source/drivers/macab/macaborder.cxx b/connectivity/source/drivers/macab/macaborder.cxx
index 399e17922b20..1a5a8f14d552 100644
--- a/connectivity/source/drivers/macab/macaborder.cxx
+++ b/connectivity/source/drivers/macab/macaborder.cxx
@@ -54,8 +54,8 @@ MacabComplexOrder::MacabComplexOrder()
MacabComplexOrder::~MacabComplexOrder()
{
- for (sal_uInt32 i = 0; i < m_aOrders.size(); i++)
- delete m_aOrders[i];
+ for (auto p: m_aOrders)
+ delete p;
}
void MacabComplexOrder::addOrder(MacabOrder *pOrder)
@@ -65,10 +65,9 @@ void MacabComplexOrder::addOrder(MacabOrder *pOrder)
sal_Int32 MacabComplexOrder::compare(const MacabRecord *record1, const MacabRecord *record2) const
{
- for (sal_uInt32 i = 0; i < m_aOrders.size(); i++)
+ for (auto p: m_aOrders)
{
- const MacabOrder *pOrder = m_aOrders[i];
- sal_Int32 result = pOrder->compare(record1, record2);
+ sal_Int32 result = p->compare(record1, record2);
if (result) return result;
}