diff options
author | Tomoyuki Kubota <himajin100000@gmail.com> | 2022-03-20 05:07:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-09-07 22:18:04 +0200 |
commit | 86498bcd73050e44ea5ea53c384edb0baf033d16 (patch) | |
tree | 66c4135c308cb4b740d6fcb4ed80fce7c85e7cf4 /setup_native/source/win32 | |
parent | f8ef0f78ed1432659cc0537a0ebb85abe9211369 (diff) |
tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro
Change-Id: Ibd3f56f6e669a3bb1c1926aa4affdcc46623c81e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131855
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'setup_native/source/win32')
-rw-r--r-- | setup_native/source/win32/customactions/shellextensions/checkpatches.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/setup_native/source/win32/customactions/shellextensions/checkpatches.cxx b/setup_native/source/win32/customactions/shellextensions/checkpatches.cxx index 9bad21377b0b..d573161fb11b 100644 --- a/setup_native/source/win32/customactions/shellextensions/checkpatches.cxx +++ b/setup_native/source/win32/customactions/shellextensions/checkpatches.cxx @@ -20,9 +20,6 @@ #include "shlxtmsi.hxx" #include <strsafe.h> #include <systools/win32/uwinapi.h> -#ifdef DEBUG -#include <sal/macros.h> -#endif #ifdef DEBUG inline void OutputDebugStringFormatW( PCWSTR pFormat, ... ) @@ -31,7 +28,7 @@ inline void OutputDebugStringFormatW( PCWSTR pFormat, ... ) va_list args; va_start( args, pFormat ); - StringCchVPrintfW( buffer, SAL_N_ELEMENTS(buffer), pFormat, args ); + StringCchVPrintfW( buffer, std::size(buffer), pFormat, args ); OutputDebugStringW( buffer ); va_end(args); } |