vcl/source/app/svdata.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 0cd703c699334ed96a5743aae977207ba9a2a74b
Author:     Deepika Goyal <deepika.goya...@gmail.com>
AuthorDate: Tue Oct 10 16:37:33 2023 +0400
Commit:     Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
CommitDate: Thu Oct 12 19:10:19 2023 +0200

    tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro
    
    Change-Id: I4c655d7700373636cc00c42d6214976b8aa9aee4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157790
    Tested-by: Jenkins
    Tested-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>

diff --git a/vcl/source/app/svdata.cxx b/vcl/source/app/svdata.cxx
index 75dc09e28e4a..e919bfda7c3d 100644
--- a/vcl/source/app/svdata.cxx
+++ b/vcl/source/app/svdata.cxx
@@ -268,7 +268,7 @@ const FieldUnitStringList& ImplGetFieldUnits()
     ImplSVData* pSVData = ImplGetSVData();
     if( pSVData->maCtrlData.maFieldUnitStrings.empty() )
     {
-        sal_uInt32 nUnits = SAL_N_ELEMENTS(SV_FUNIT_STRINGS);
+        sal_uInt32 nUnits = std::size(SV_FUNIT_STRINGS);
         pSVData->maCtrlData.maFieldUnitStrings.reserve( nUnits );
         for (sal_uInt32 i = 0; i < nUnits; i++)
         {
@@ -283,7 +283,7 @@ namespace vcl
 {
     FieldUnit EnglishStringToMetric(std::u16string_view rEnglishMetricString)
     {
-        sal_uInt32 nUnits = SAL_N_ELEMENTS(SV_FUNIT_STRINGS);
+        sal_uInt32 nUnits = std::size(SV_FUNIT_STRINGS);
         for (sal_uInt32 i = 0; i < nUnits; ++i)
         {
             if (o3tl::equalsAscii(rEnglishMetricString, 
SV_FUNIT_STRINGS[i].first.getId()))

Reply via email to