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

Change-Id: Id91ca2d7002b3743ecaed7b40edda3f85e080884
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135061
Tested-by: Jenkins
Reviewed-by: Roman Kuznetsov <antilibreoffice@gmail.com>
This commit is contained in:
Roman Kuznetsov 2022-05-29 15:27:29 +02:00
parent d694b572c7
commit 81aad6d53f

View file

@ -11,6 +11,7 @@
#include <rtl/textcvt.h>
#include <cstdlib>
#include <iterator>
#include <stdio.h>
namespace {
@ -91,7 +92,7 @@ int main()
sal_Unicode c = 0;
while (c < 0xFFFF)
{
for (size_t i = 0; i < SAL_N_ELEMENTS(aConverters); ++i)
for (size_t i = 0; i < std::size(aConverters); ++i)
aConverters[i].reset();
int nMostCapable = -1;
@ -99,7 +100,7 @@ int main()
while(c < 0xFFFF)
{
bool bSomethingCapable = false;
for (size_t i = 0; i < SAL_N_ELEMENTS(aConverters); ++i)
for (size_t i = 0; i < std::size(aConverters); ++i)
{
if (aConverters[i].isOK())
aConverters[i].checkSupports(c);
@ -119,7 +120,7 @@ int main()
while(c < 0xFFFF)
{
bool bNothingCapable = true;
for (size_t i = 0; i < SAL_N_ELEMENTS(aConverters); ++i)
for (size_t i = 0; i < std::size(aConverters); ++i)
{
aConverters[i].checkSupports(c);
if (aConverters[i].isOK())