summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-08-23 15:43:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-24 08:55:14 +0200
commite8e558488217b8d2c381191389f2a785aaa5ca27 (patch)
treeed93f63487fb670fd3d0a9f3a55d19c39eaa7f82 /dbaccess
parent68b9553d44769947dfe3899b396d9236d4406ddf (diff)
pass DelFormats around using std::vector
instead of an array and a separate count Change-Id: Ia12a549da7e35092da2db35f8b2b9fc6a9e9c2be Reviewed-on: https://gerrit.libreoffice.org/59506 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/misc/UITools.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/dbaccess/source/ui/misc/UITools.cxx b/dbaccess/source/ui/misc/UITools.cxx
index 24210c560bda..6643ca7a3dea 100644
--- a/dbaccess/source/ui/misc/UITools.cxx
+++ b/dbaccess/source/ui/misc/UITools.cxx
@@ -873,12 +873,10 @@ bool callColumnFormatDialog(vcl::Window* _pParent,
{
const SfxPoolItem* pItem = pResult->GetItem( SID_ATTR_NUMBERFORMAT_INFO );
const SvxNumberInfoItem* pInfoItem = static_cast<const SvxNumberInfoItem*>(pItem);
- if (pInfoItem && pInfoItem->GetDelCount())
+ if (pInfoItem)
{
- const sal_uInt32* pDeletedKeys = pInfoItem->GetDelArray();
-
- for (sal_uInt32 i=0; i< pInfoItem->GetDelCount(); ++i)
- _pFormatter->DeleteEntry(pDeletedKeys[i]);
+ for (sal_uInt32 key : pInfoItem->GetDelFormats())
+ _pFormatter->DeleteEntry(key);
}
}
}