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:
committed by
Bartosz Kosiorek
parent
0c3950c495
commit
6abc09926c
@@ -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;
|
||||
|
Reference in New Issue
Block a user