formula/source/ui/dlg/parawin.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 2493fffca3e8ef030c0b4ec543518800814f406f Author: Melove <[email protected]> AuthorDate: Fri Jan 30 01:16:03 2026 +0530 Commit: Ilmari Lauhakangas <[email protected]> CommitDate: Wed Feb 4 12:13:39 2026 +0100 tdf#147021 Replace SAL_N_ELEMENTS with std::size in parawin.cxx Change-Id: I1a0970ed339eea5c6c0ce2df5ebb3114c7a0ef64 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198378 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <[email protected]> diff --git a/formula/source/ui/dlg/parawin.cxx b/formula/source/ui/dlg/parawin.cxx index 8740ea6487a9..a2094702160a 100644 --- a/formula/source/ui/dlg/parawin.cxx +++ b/formula/source/ui/dlg/parawin.cxx @@ -523,7 +523,7 @@ IMPL_LINK( ParaWin, GetFxFocusHdl, ArgInput&, rPtr, void ) { sal_uInt16 nOffset = GetSliderPos(); nEdFocus=NOT_FOUND; - for (size_t nPos=0; nPos < SAL_N_ELEMENTS(aArgInput); ++nPos) + for (size_t nPos=0; nPos < std::size(aArgInput); ++nPos) { if(&rPtr == &aArgInput[nPos]) { @@ -544,7 +544,7 @@ IMPL_LINK( ParaWin, GetEdFocusHdl, ArgInput&, rPtr, void ) { sal_uInt16 nOffset = GetSliderPos(); nEdFocus=NOT_FOUND; - for (size_t nPos=0; nPos < SAL_N_ELEMENTS(aArgInput); ++nPos) + for (size_t nPos=0; nPos < std::size(aArgInput); ++nPos) { if(&rPtr == &aArgInput[nPos]) { @@ -573,7 +573,7 @@ IMPL_LINK( ParaWin, ModifyHdl, ArgInput&, rPtr, void ) { sal_uInt16 nOffset = GetSliderPos(); nEdFocus=NOT_FOUND; - for (size_t nPos=0; nPos < SAL_N_ELEMENTS(aArgInput); ++nPos) + for (size_t nPos=0; nPos < std::size(aArgInput); ++nPos) { if(&rPtr == &aArgInput[nPos]) {
