diff options
Diffstat (limited to 'sc/source/ui/unoobj/servuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/servuno.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/servuno.cxx b/sc/source/ui/unoobj/servuno.cxx index b723de895cca..c87d296c00cb 100644 --- a/sc/source/ui/unoobj/servuno.cxx +++ b/sc/source/ui/unoobj/servuno.cxx @@ -586,7 +586,7 @@ uno::Reference<uno::XInterface> ScServiceProvider::MakeInstance( uno::Sequence<OUString> ScServiceProvider::GetAllServiceNames() { - const sal_uInt16 nEntries = sizeof(aProvNamesId) / sizeof(aProvNamesId[0]); + const sal_uInt16 nEntries = SAL_N_ELEMENTS(aProvNamesId); uno::Sequence<OUString> aRet(nEntries); OUString* pArray = aRet.getArray(); for (sal_uInt16 i = 0; i < nEntries; i++) |