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>
This commit is contained in:
committed by
Caolán McNamara
parent
f8ef0f78ed
commit
86498bcd73
@@ -20,9 +20,6 @@
|
|||||||
#include "shlxtmsi.hxx"
|
#include "shlxtmsi.hxx"
|
||||||
#include <strsafe.h>
|
#include <strsafe.h>
|
||||||
#include <systools/win32/uwinapi.h>
|
#include <systools/win32/uwinapi.h>
|
||||||
#ifdef DEBUG
|
|
||||||
#include <sal/macros.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
inline void OutputDebugStringFormatW( PCWSTR pFormat, ... )
|
inline void OutputDebugStringFormatW( PCWSTR pFormat, ... )
|
||||||
@@ -31,7 +28,7 @@ inline void OutputDebugStringFormatW( PCWSTR pFormat, ... )
|
|||||||
va_list args;
|
va_list args;
|
||||||
|
|
||||||
va_start( args, pFormat );
|
va_start( args, pFormat );
|
||||||
StringCchVPrintfW( buffer, SAL_N_ELEMENTS(buffer), pFormat, args );
|
StringCchVPrintfW( buffer, std::size(buffer), pFormat, args );
|
||||||
OutputDebugStringW( buffer );
|
OutputDebugStringW( buffer );
|
||||||
va_end(args);
|
va_end(args);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user