editeng/qa/unit/core-test.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c069f50a9e05c796935a55e6b2db5f714cf9cff7 Author: Mohamed Ali <mohmedali1462...@gmail.com> AuthorDate: Sat Nov 23 17:51:27 2024 +0200 Commit: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> CommitDate: Sun Nov 24 09:29:59 2024 +0100 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.lauhakan...@libreoffice.org> Tested-by: Jenkins diff --git a/editeng/qa/unit/core-test.cxx b/editeng/qa/unit/core-test.cxx index ac3c683c9204..029df4439dee 100644 --- a/editeng/qa/unit/core-test.cxx +++ b/editeng/qa/unit/core-test.cxx @@ -900,7 +900,7 @@ void Test::testHyperlinkSearch() { 21, 25, /* -> */ 21, 23 }, // the field is really just one char { 25, 27, /* -> */ 22, 23 }, { 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 nEnd = aTrickyOnes[n].mnEnd;