embedserv/source/inprocserv/dllentry.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 07b6e34397037722d40b2013eef21085eca4f235
Author:     insanetree <treeb...@tutanota.com>
AuthorDate: Mon Oct 17 01:41:58 2022 +0200
Commit:     Hossein <hoss...@libreoffice.org>
CommitDate: Sat Oct 29 20:14:06 2022 +0200

    tdf#147021: SAL_N_ELEMENTS changed to std::size
    
    Change-Id: I5633e4bb3658864abde49df1c65b93a2b4592631
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141437
    Reviewed-by: Hossein <hoss...@libreoffice.org>
    Tested-by: Hossein <hoss...@libreoffice.org>

diff --git a/embedserv/source/inprocserv/dllentry.cxx 
b/embedserv/source/inprocserv/dllentry.cxx
index 6c06fae47f59..12dee7b0cc85 100644
--- a/embedserv/source/inprocserv/dllentry.cxx
+++ b/embedserv/source/inprocserv/dllentry.cxx
@@ -95,8 +95,8 @@ namespace {
             for ( int nInd = 0; nInd < SUPPORTED_FACTORIES_NUM; nInd++ )
             {
                 const wchar_t pSubKeyTemplate[] = 
L"Software\\Classes\\CLSID\\.....................................\\InprocHandler32";
-                wchar_t pSubKey[SAL_N_ELEMENTS(pSubKeyTemplate)];
-                wcsncpy(pSubKey, pSubKeyTemplate, 
SAL_N_ELEMENTS(pSubKeyTemplate));
+                wchar_t pSubKey[std::size(pSubKeyTemplate)];
+                wcsncpy(pSubKey, pSubKeyTemplate, std::size(pSubKeyTemplate));
 
                 int nGuidLen = GetStringFromClassID( *guidList[nInd], 
&pSubKey[23], 38 );
 

Reply via email to