summaryrefslogtreecommitdiffstats
path: root/extensions
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 /extensions
parentloplugin:useuniqueptr in sd::Communicator (diff)
downloadcore-e8e558488217b8d2c381191389f2a785aaa5ca27.tar.gz
core-e8e558488217b8d2c381191389f2a785aaa5ca27.zip
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 'extensions')
-rw-r--r--extensions/source/propctrlr/formcomponenthandler.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx
index 1abe2f2c8237..803bc84abb49 100644
--- a/extensions/source/propctrlr/formcomponenthandler.cxx
+++ b/extensions/source/propctrlr/formcomponenthandler.cxx
@@ -2658,12 +2658,10 @@ namespace pcr
const SfxPoolItem* pItem = pResult->GetItem( SID_ATTR_NUMBERFORMAT_INFO );
const SvxNumberInfoItem* pInfoItem = dynamic_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);
}
pItem = nullptr;