diff --git a/src/xmlpatterns/parser/qtokenlookup.cpp b/src/xmlpatterns/parser/qtokenlookup.cpp index 42ccff3c346a4d9372d7f5c5cf8da0fe010c06b8..f92ebe4bc5053cbf70b33e42ce557101aa31d1b7 100644 --- a/src/xmlpatterns/parser/qtokenlookup.cpp +++ b/src/xmlpatterns/parser/qtokenlookup.cpp @@ -91,7 +91,7 @@ public: }; inline unsigned int -TokenLookup::hash (register const char *str, register unsigned int len) +TokenLookup::hash (const char *str, unsigned int len) { static const unsigned char asso_values[] = { @@ -122,7 +122,7 @@ TokenLookup::hash (register const char *str, register unsigned int len) 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230 }; - register int hval = len; + int hval = len; switch (hval) { @@ -138,7 +138,7 @@ TokenLookup::hash (register const char *str, register unsigned int len) } const struct TokenMap * -TokenLookup::value (register const char *str, register unsigned int len) +TokenLookup::value (const char *str, unsigned int len) { enum { @@ -416,11 +416,11 @@ TokenLookup::value (register const char *str, register unsigned int len) if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) { - register int key = hash (str, len); + int key = hash (str, len); if (key <= MAX_HASH_VALUE && key >= 0) { - register const char *s = wordlist[key].name; + const char *s = wordlist[key].name; if (*str == *s && !strcmp (str + 1, s + 1)) return &wordlist[key];