vcl/source/font/fontcharmap.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit d694b572c7262a326ac7ceac2e558f3fc6c78df4 Author: Roman Kuznetsov <antilibreoff...@gmail.com> AuthorDate: Mon May 30 09:16:26 2022 +0200 Commit: Roman Kuznetsov <antilibreoff...@gmail.com> CommitDate: Mon May 30 12:21:52 2022 +0200 tdf#147021 Use std::size() instead SAL_N_ELEMENTS macro Change-Id: I86956ab4beaba6b2b0905123ccea76c8ffad57fa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135063 Tested-by: Jenkins Reviewed-by: Roman Kuznetsov <antilibreoff...@gmail.com> diff --git a/vcl/source/font/fontcharmap.cxx b/vcl/source/font/fontcharmap.cxx index 90a08d617a86..7ca3e56a2f8c 100644 --- a/vcl/source/font/fontcharmap.cxx +++ b/vcl/source/font/fontcharmap.cxx @@ -69,11 +69,11 @@ ImplFontCharMap::ImplFontCharMap( const CmapResult& rCR ) ImplFontCharMapRef const & ImplFontCharMap::getDefaultMap( bool bSymbols ) { const sal_UCS4* pRangeCodes = aDefaultUnicodeRanges; - int nCodesCount = SAL_N_ELEMENTS(aDefaultUnicodeRanges); + int nCodesCount = std::size(aDefaultUnicodeRanges); if( bSymbols ) { pRangeCodes = aDefaultSymbolRanges; - nCodesCount = SAL_N_ELEMENTS(aDefaultSymbolRanges); + nCodesCount = std::size(aDefaultSymbolRanges); } CmapResult aDefaultCR( bSymbols, pRangeCodes, nCodesCount/2 );