summaryrefslogtreecommitdiff
path: root/idl/source
diff options
context:
space:
mode:
Diffstat (limited to 'idl/source')
-rw-r--r--idl/source/cmptools/hash.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/idl/source/cmptools/hash.cxx b/idl/source/cmptools/hash.cxx
index 22faf3826d7e..fc63730b0a94 100644
--- a/idl/source/cmptools/hash.cxx
+++ b/idl/source/cmptools/hash.cxx
@@ -26,6 +26,8 @@
#include <hash.hxx>
#include <tools/debug.hxx>
+#include <rtl/character.hxx>
+
SvStringHashEntry::~SvStringHashEntry() { };
SvHashTable::SvHashTable( sal_uInt32 nMaxEntries )
@@ -121,7 +123,7 @@ sal_uInt32 SvStringHashTable::HashFunc( const OString& rElement ) const
int nShift = 0;
while( *pStr )
{
- if( isupper( *pStr ) )
+ if( rtl::isAsciiUpperCase( *pStr ) )
nHash ^= sal_uInt32(*pStr - 'A' + 26) << nShift;
else
nHash ^= sal_uInt32(*pStr - 'a') << nShift;