summaryrefslogtreecommitdiff
path: root/svtools/source/misc/sampletext.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-14 10:46:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-14 15:14:27 +0200
commit546c35519125a769755330c961c7b8fc61e24d89 (patch)
tree0b73735081bd279b89b93dabc5c35dee6ec08b94 /svtools/source/misc/sampletext.cxx
parent92b7acdf2a1159af8a31da22ce6227950f709040 (diff)
use more SAL_N_ELEMENTS part 2
Change-Id: If00e371c3cd3ae616309a172c875faed016e391b Reviewed-on: https://gerrit.libreoffice.org/38773 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/misc/sampletext.cxx')
-rw-r--r--svtools/source/misc/sampletext.cxx2
1 files changed, 1 insertions, 1 deletions
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;