diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-04-15 07:28:17 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-04-18 07:36:52 +0200 |
commit | eb011eea8b1c1553fe73d4ceb557446a5b54e685 (patch) | |
tree | f83ea75d15c7bc80aec12e9d9570d41f823a7382 | |
parent | 6618a52c1bed51236d85355cb35b20828ad750a6 (diff) |
Use SAL_N_ELEMENTS() for array size
Change-Id: Ifcdeb47b5481ca6c16cd5eb6eb35858e7b2261c5
-rw-r--r-- | sw/source/ui/config/optpage.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx index 9991f306d2cb..2c2f02cbd076 100644 --- a/sw/source/ui/config/optpage.cxx +++ b/sw/source/ui/config/optpage.cxx @@ -49,6 +49,7 @@ #include <editeng/fontitem.hxx> #include <editeng/langitem.hxx> #include <editeng/svxenum.hxx> +#include <sal/macros.h> #include <sfx2/dialoghelper.hxx> #include <sfx2/request.hxx> #include <sfx2/printer.hxx> @@ -1960,12 +1961,9 @@ void SwRedlineOptionsTabPage::Reset( const SfxItemSet& ) pDeletedLB->SelectEntryPos(0); pChangedLB->SelectEntryPos(0); - lcl_FillRedlineAttrListBox(*pInsertLB, rInsertAttr, aInsertAttrMap, - sizeof(aInsertAttrMap) / sizeof(sal_uInt16)); - lcl_FillRedlineAttrListBox(*pDeletedLB, rDeletedAttr, aDeletedAttrMap, - sizeof(aDeletedAttrMap) / sizeof(sal_uInt16)); - lcl_FillRedlineAttrListBox(*pChangedLB, rChangedAttr, aChangedAttrMap, - sizeof(aChangedAttrMap) / sizeof(sal_uInt16)); + lcl_FillRedlineAttrListBox(*pInsertLB, rInsertAttr, aInsertAttrMap, SAL_N_ELEMENTS(aInsertAttrMap)); + lcl_FillRedlineAttrListBox(*pDeletedLB, rDeletedAttr, aDeletedAttrMap, SAL_N_ELEMENTS(aDeletedAttrMap)); + lcl_FillRedlineAttrListBox(*pChangedLB, rChangedAttr, aChangedAttrMap, SAL_N_ELEMENTS(aChangedAttrMap)); sal_Int32 nPos = 0; switch (pOpt->GetMarkAlignMode()) |