tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro

Change-Id: I54257e87da0cd66da59d820c7960c3e4b020fda3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134027
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
Tested-by: Jenkins
This commit is contained in:
Pragat Pandya
2022-05-08 23:56:45 +05:30
committed by Bartosz Kosiorek
parent 0c3950c495
commit 6abc09926c
27 changed files with 125 additions and 125 deletions

View File

@@ -963,7 +963,7 @@ namespace cppcanvas::internal
pChars[3]=pChars[2]=pChars[1]=pChars[0];
::tools::Long nStrikeoutWidth = (rParms.mrVDev.GetTextWidth(
OUString(pChars, SAL_N_ELEMENTS(pChars))) + 2) / 4;
OUString(pChars, std::size(pChars))) + 2) / 4;
if( nStrikeoutWidth <= 0 )
nStrikeoutWidth = 1;