summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-02 22:57:02 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-02 22:57:44 +0200
commit8b9be6fd5ffcc37363efb4228dec9126a8e179a6 (patch)
tree99b2d6969fc53b3a669e32ca904836e4aa7345e6 /connectivity
parent5ad704ac9b885df71f634716a10b625e4473005f (diff)
loplugin:loopvartoosmall
Change-Id: I63917d68b05d6e2f1248bcf88e27952df201d2c5
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;
}