summaryrefslogtreecommitdiff
path: root/svtools/source/svrtf
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/svrtf
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/svrtf')
-rw-r--r--svtools/source/svrtf/rtfkeywd.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/svrtf/rtfkeywd.cxx b/svtools/source/svrtf/rtfkeywd.cxx
index a0b2ffe48e49..8ce750686236 100644
--- a/svtools/source/svrtf/rtfkeywd.cxx
+++ b/svtools/source/svrtf/rtfkeywd.cxx
@@ -1209,7 +1209,7 @@ int GetRTFToken( const OUString& rSearch )
if( !bSortKeyWords )
{
qsort( static_cast<void*>(aRTFTokenTab),
- sizeof( aRTFTokenTab ) / sizeof( RTF_TokenEntry ),
+ SAL_N_ELEMENTS( aRTFTokenTab ),
sizeof( RTF_TokenEntry ),
RTFKeyCompare );
bSortKeyWords = true;
@@ -1223,7 +1223,7 @@ int GetRTFToken( const OUString& rSearch )
if( nullptr != ( pFound = bsearch( &aSrch,
static_cast<void*>(aRTFTokenTab),
- sizeof( aRTFTokenTab ) / sizeof( RTF_TokenEntry ),
+ SAL_N_ELEMENTS( aRTFTokenTab ),
sizeof( RTF_TokenEntry ),
RTFKeyCompare )))
nRet = static_cast<RTF_TokenEntry*>(pFound)->nToken;