From 546c35519125a769755330c961c7b8fc61e24d89 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 14 Jun 2017 10:46:05 +0200 Subject: use more SAL_N_ELEMENTS part 2 Change-Id: If00e371c3cd3ae616309a172c875faed016e391b Reviewed-on: https://gerrit.libreoffice.org/38773 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- svtools/source/misc/sampletext.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svtools/source/misc/sampletext.cxx') diff --git a/svtools/source/misc/sampletext.cxx b/svtools/source/misc/sampletext.cxx index cb131e28d85c..b3a96864e2fb 100644 --- a/svtools/source/misc/sampletext.cxx +++ b/svtools/source/misc/sampletext.cxx @@ -175,7 +175,7 @@ OUString makeShortRepresentativeSymbolTextForSelectedFont(OutputDevice &rDevice) // start just above the PUA used by most symbol fonts sal_uInt32 cNewChar = 0xFF00; - const int nMaxCount = sizeof(aText)/sizeof(*aText) - 1; + const int nMaxCount = SAL_N_ELEMENTS(aText) - 1; int nSkip = xFontCharMap->GetCharCount() / nMaxCount; if( nSkip > 10 ) nSkip = 10; -- cgit