tdf#147021: SAL_N_ELEMENTS changed to std::size
Change-Id: I5633e4bb3658864abde49df1c65b93a2b4592631 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141437 Reviewed-by: Hossein <hossein@libreoffice.org> Tested-by: Hossein <hossein@libreoffice.org>
This commit is contained in:
parent
29de154fdf
commit
07b6e34397
1 changed files with 2 additions and 2 deletions
|
@ -95,8 +95,8 @@ namespace {
|
||||||
for ( int nInd = 0; nInd < SUPPORTED_FACTORIES_NUM; nInd++ )
|
for ( int nInd = 0; nInd < SUPPORTED_FACTORIES_NUM; nInd++ )
|
||||||
{
|
{
|
||||||
const wchar_t pSubKeyTemplate[] = L"Software\\Classes\\CLSID\\.....................................\\InprocHandler32";
|
const wchar_t pSubKeyTemplate[] = L"Software\\Classes\\CLSID\\.....................................\\InprocHandler32";
|
||||||
wchar_t pSubKey[SAL_N_ELEMENTS(pSubKeyTemplate)];
|
wchar_t pSubKey[std::size(pSubKeyTemplate)];
|
||||||
wcsncpy(pSubKey, pSubKeyTemplate, SAL_N_ELEMENTS(pSubKeyTemplate));
|
wcsncpy(pSubKey, pSubKeyTemplate, std::size(pSubKeyTemplate));
|
||||||
|
|
||||||
int nGuidLen = GetStringFromClassID( *guidList[nInd], &pSubKey[23], 38 );
|
int nGuidLen = GetStringFromClassID( *guidList[nInd], &pSubKey[23], 38 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue