framework/source/uielement/controlmenucontroller.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit b5e1580544194c77ac0214c90c23fa47447ef1d9 Author: Rahul Anand <[email protected]> AuthorDate: Fri Feb 14 20:21:51 2025 +0530 Commit: Hossein <[email protected]> CommitDate: Sat Feb 15 20:42:22 2025 +0100 tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro Change-Id: I6803a035266203bec99a910ac65757267892967b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181670 Tested-by: Jenkins Reviewed-by: Hossein <[email protected]> diff --git a/framework/source/uielement/controlmenucontroller.cxx b/framework/source/uielement/controlmenucontroller.cxx index aaa86c78acfe..9b10852a693b 100644 --- a/framework/source/uielement/controlmenucontroller.cxx +++ b/framework/source/uielement/controlmenucontroller.cxx @@ -206,7 +206,7 @@ void ControlMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu > con { resetPopupMenu( rPopupMenu ); - for (size_t i=0; i < SAL_N_ELEMENTS(aCommands); ++i) + for (size_t i=0; i < std::size(aCommands); ++i) { sal_Int16 nItemId = i + 1; OUString sCommand(aCommands[i]); @@ -245,7 +245,7 @@ void SAL_CALL ControlMenuController::statusChanged( const FeatureStateEvent& Eve return; sal_Int16 nItemId = 0; - for (size_t i=0; i < SAL_N_ELEMENTS(aCommands); ++i) + for (size_t i=0; i < std::size(aCommands); ++i) { if ( Event.FeatureURL.Complete == aCommands[i] ) {
