sw/source/uibase/uiview/pview.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 86544e4d071b0d3a99a1f8b08739323f4684503f
Author:     Simon Chenery <[email protected]>
AuthorDate: Fri Aug 1 21:47:37 2025 +0200
Commit:     David Gilbert <[email protected]>
CommitDate: Sat Aug 2 18:42:11 2025 +0200

    tdf#147021 avoid use of SAL_N_ELEMENTS macro in pview.cxx
    
    Change-Id: Iaaeab398e7d878e1b0d8c621f69881ad46186322
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188784
    Tested-by: Jenkins
    Reviewed-by: David Gilbert <[email protected]>

diff --git a/sw/source/uibase/uiview/pview.cxx 
b/sw/source/uibase/uiview/pview.cxx
index 404afc46a899..971191dc866b 100644
--- a/sw/source/uibase/uiview/pview.cxx
+++ b/sw/source/uibase/uiview/pview.cxx
@@ -102,7 +102,7 @@ static sal_uInt16 lcl_GetNextZoomStep(sal_uInt16 
nCurrentZoom, bool bZoomIn)
     {
         25, 50, 75, 100, 150, 200, 400, 600
     };
-    const int nZoomArrSize = static_cast<int>(SAL_N_ELEMENTS(aZoomArr));
+    const int nZoomArrSize = std::ssize(aZoomArr);
     if (bZoomIn)
     {
         for(sal_uInt16 i : aZoomArr)

Reply via email to