include/oox/helper/helper.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 837c9af957a4935d44f7e4ad6d290be915bcced2 Author: Zainab Abbasi <101zabb...@gmail.com> AuthorDate: Wed Apr 17 13:46:37 2024 -0700 Commit: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> CommitDate: Tue May 7 08:12:45 2024 +0200 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.lauhakan...@libreoffice.org> Tested-by: Jenkins Tested-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> diff --git a/include/oox/helper/helper.hxx b/include/oox/helper/helper.hxx index f9bdd1cec9c2..4099204c1a5d 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 ===========================================================