diff options
Diffstat (limited to 'svtools/source/svrtf/rtfkeywd.cxx')
-rw-r--r-- | svtools/source/svrtf/rtfkeywd.cxx | 4 |
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; |