tdf#147021 Replace SAL_N_ELEMENTS with std::size
Change-Id: I2df519a73f283c3a74353222826e82beaa98f017
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166194
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
diff --git a/include/oox/helper/helper.hxx b/include/oox/helper/helper.hxx
index f9bdd1ce..4099204 100644
--- a/include/oox/helper/helper.hxx
+++ b/include/oox/helper/helper.hxx
@@ -54,7 +54,7 @@ template<typename T> constexpr std::make_unsigned_t<T> make_unsigned(T value) {
/** Expands to the 'index'-th element of a STATIC data array, or to 'def', if
'index' is out of the array limits. */
#define STATIC_ARRAY_SELECT( array, index, def ) \
((detail::make_unsigned(index) < SAL_N_ELEMENTS(array)) ? ((array)[static_cast<size_t>(index)]) : (def))
((detail::make_unsigned(index) < std::size(array)) ? ((array)[static_cast<size_t>(index)]) : (def))
// Common constants ===========================================================