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

Change-Id: I3d8b65f0ef386eed2ada12664aa33d2efd53fb65
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177641
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
This commit is contained in:
LeSci-0x1 2024-12-01 21:12:47 -08:00 committed by Ilmari Lauhakangas
parent e1775391a5
commit 388b8fa5b2

View file

@ -43,7 +43,7 @@ char const* const* SunInfo::getJavaExePaths(int * size)
"jre/bin/java"
#endif
};
*size = SAL_N_ELEMENTS(ar);
*size = std::size(ar);
return ar;
}
@ -69,7 +69,7 @@ char const* const* SunInfo::getRuntimePaths(int * size)
"/lib/server/libjvm.so"
#endif
};
*size = SAL_N_ELEMENTS(ar);
*size = std::size(ar);
return ar;
}
@ -82,7 +82,7 @@ char const* const* SunInfo::getLibraryPaths(int* size)
"/lib/" JFW_PLUGIN_ARCH "/native_threads",
("/lib/" JFW_PLUGIN_ARCH)
};
*size = SAL_N_ELEMENTS(ar);
*size = std::size(ar);
return ar;
#else
*size = 0;