diff options
author | Kayo Hamid <revol.code@yahoo.com> | 2010-10-09 13:46:58 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-09 13:46:58 -0500 |
commit | 6c036ff59d350cd28975a4d4614b8bc22373460b (patch) | |
tree | 8f2bccfad5927502ad306fdf11f9f4a73d12fcf0 /sc/source/ui/vba/vbapalette.cxx | |
parent | f2b9b79cffe97904c3a361123b40bc67f70f05eb (diff) |
Use SAL_N_ELEMENTS macro
Diffstat (limited to 'sc/source/ui/vba/vbapalette.cxx')
-rw-r--r-- | sc/source/ui/vba/vbapalette.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/vba/vbapalette.cxx b/sc/source/ui/vba/vbapalette.cxx index c6ae5c488a20..2ca5c048ba94 100644 --- a/sc/source/ui/vba/vbapalette.cxx +++ b/sc/source/ui/vba/vbapalette.cxx @@ -62,7 +62,7 @@ public: // Methods XIndexAccess virtual ::sal_Int32 SAL_CALL getCount() throw (uno::RuntimeException) { - return sizeof(spnDefColorTable8) / sizeof(spnDefColorTable8[0]); + return SAL_N_ELEMENTS(spnDefColorTable8); } virtual uno::Any SAL_CALL getByIndex( ::sal_Int32 Index ) throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException) |