tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro

Change-Id: I958365b3db058ec809702a5ddde1d153467f21ce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177158
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
This commit is contained in:
Mohamed Ali 2024-11-23 17:51:27 +02:00 committed by Ilmari Lauhakangas
parent f9cac88fc2
commit c069f50a9e

View file

@ -900,7 +900,7 @@ void Test::testHyperlinkSearch()
{ 21, 25, /* -> */ 21, 23 }, // the field is really just one char { 21, 25, /* -> */ 21, 23 }, // the field is really just one char
{ 25, 27, /* -> */ 22, 23 }, { 25, 27, /* -> */ 22, 23 },
{ 50, 56, /* -> */ 40, 46 } }; { 50, 56, /* -> */ 40, 46 } };
for (size_t n = 0; n < SAL_N_ELEMENTS(aTrickyOnes); n++) for (size_t n = 0; n < std::size(aTrickyOnes); n++)
{ {
sal_Int32 nStart = aTrickyOnes[n].mnStart; sal_Int32 nStart = aTrickyOnes[n].mnStart;
sal_Int32 nEnd = aTrickyOnes[n].mnEnd; sal_Int32 nEnd = aTrickyOnes[n].mnEnd;