summaryrefslogtreecommitdiff
path: root/extensions/source
diff options
context:
space:
mode:
authorMohamed Zaghloul <zaghloulmohamed9@gmail.com>2025-03-20 23:30:36 +0200
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2025-03-27 12:06:41 +0100
commita790b8f4d554f2e249cd63f524f88940b0166325 (patch)
tree2460433fd07ea8a45af7ac74e7e30432b0d008fd /extensions/source
parent944420a3e681ff0620a1f69184c4fbe6e41d097a (diff)
tdf#147021 Use std::size() instead of SAL_N_ELEMENTS()
Change-Id: I77f84819915497966aa725e35a416c0e7f5c72c6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183185 Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Tested-by: Jenkins
Diffstat (limited to 'extensions/source')
-rw-r--r--extensions/source/activex/so_activex.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/activex/so_activex.cxx b/extensions/source/activex/so_activex.cxx
index a4ce480613dc..dadd8ae7eebd 100644
--- a/extensions/source/activex/so_activex.cxx
+++ b/extensions/source/activex/so_activex.cxx
@@ -731,8 +731,8 @@ STDAPI DllRegisterServer()
{
wchar_t pProgramPath[1024];
wchar_t* pPathEnd = nullptr;
- DWORD nLen = GetModuleFileNameW( aCurModule, pProgramPath, SAL_N_ELEMENTS(pProgramPath) );
- if ( nLen && nLen < SAL_N_ELEMENTS(pProgramPath) )
+ DWORD nLen = GetModuleFileNameW( aCurModule, pProgramPath, std::size(pProgramPath) );
+ if ( nLen && nLen < std::size(pProgramPath) )
pPathEnd = wcsrchr(pProgramPath, '\\');
if (pPathEnd)
{