summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorSinduja Y <sinduja.code@gmail.com>2022-03-15 12:39:03 +0100
committerHossein <hossein@libreoffice.org>2022-03-18 18:30:38 +0100
commita40ed687a3e2f8e1d17705fcd7d397ba09398cb6 (patch)
tree08a592767e4f52870a7dbb2dc6f084cddce164ef /sc
parent90020e670e543bbcd54598eb62b43a5e996de0d1 (diff)
tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro
Change-Id: Ifed6b79a4186e3196dc1e9ac179fe8ad0ee4a342 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131655 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/odffmap.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/core/tool/odffmap.cxx b/sc/source/core/tool/odffmap.cxx
index 5cbfdeeb0d7a..112854f4a71c 100644
--- a/sc/source/core/tool/odffmap.cxx
+++ b/sc/source/core/tool/odffmap.cxx
@@ -18,7 +18,6 @@
*/
#include <compiler.hxx>
-#include <sal/macros.h>
// ODFF, English, MapDupToInternal when writing ODFF, Programmatical, ODF_11
// functions duplicated to internal when writing ODFF are listed in static const XclFunctionInfo saFuncTable_4[]
@@ -137,7 +136,7 @@ const ScCompiler::AddInMap ScCompiler::g_aAddInMap[] =
size_t ScCompiler::GetAddInMapCount()
{
- return SAL_N_ELEMENTS(g_aAddInMap);
+ return std::size(g_aAddInMap);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */