sfx2/source/appl/appuno.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 4d6cf9434009fcbdd2445d7bcae5081595edae28 Author: Simon Chenery <simon_chen...@yahoo.com> AuthorDate: Sun Feb 23 16:05:04 2025 +0100 Commit: Hossein <hoss...@libreoffice.org> CommitDate: Mon Feb 24 12:56:04 2025 +0100 tdf#147021 avoid use of SAL_N_ELEMENTS macro in appuno.cxx Change-Id: I6d72f0dd0d2747b2e0041f1be1284e3f570b0363 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182067 Tested-by: Jenkins Reviewed-by: Hossein <hoss...@libreoffice.org> diff --git a/sfx2/source/appl/appuno.cxx b/sfx2/source/appl/appuno.cxx index 46ca28982fec..e0a8ad545977 100644 --- a/sfx2/source/appl/appuno.cxx +++ b/sfx2/source/appl/appuno.cxx @@ -93,7 +93,7 @@ SfxFormalArgument const aFormalArgs[] = { { static_cast<const SfxType*>(&aSfxStringItem_Impl), u"AdditionsTag"_ustr, FN_PARAM_ADDITIONS_TAG }, }; -sal_uInt16 const nMediaArgsCount = SAL_N_ELEMENTS(aFormalArgs); +constexpr sal_uInt16 nMediaArgsCount = std::size(aFormalArgs); constexpr OUString sTemplateRegionName = u"TemplateRegionName"_ustr; constexpr OUString sTemplateName = u"TemplateName"_ustr;