summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorZainab Abbasi <101zabbasi@gmail.com>2024-04-17 13:46:37 -0700
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2024-05-07 08:12:45 +0200
commit837c9af957a4935d44f7e4ad6d290be915bcced2 (patch)
treeac89aca391c28b675041da7c46f7bf87a05534cc /include
parent971eb758132994b5dfacf0af456fbb96f1863534 (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/oox/helper/helper.hxx2
1 files changed, 1 insertions, 1 deletions
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 ===========================================================