diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2013-06-15 12:30:08 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-06-16 11:28:05 +0200 |
commit | 4674a1cdf9cb721c9306576a76d4fe2c6425fe51 (patch) | |
tree | 863cac046189d35d296b3b6448de21cd8497b817 /src/xmlpatterns | |
parent | 4bd45d7d2a32a170b4ed11b03752726b446fbb79 (diff) | |
download | qtxmlpatterns-4674a1cdf9cb721c9306576a76d4fe2c6425fe51.tar.gz |
Remove use of 'register' from QtXmlPatterns.
Change-Id: I7d5136b9381fcce1ac7233ac743ab205d73ca0fa
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/xmlpatterns')
-rw-r--r-- | src/xmlpatterns/parser/qtokenlookup.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xmlpatterns/parser/qtokenlookup.cpp b/src/xmlpatterns/parser/qtokenlookup.cpp index 1b144bc..f188d74 100644 --- a/src/xmlpatterns/parser/qtokenlookup.cpp +++ b/src/xmlpatterns/parser/qtokenlookup.cpp @@ -99,7 +99,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[] = { @@ -130,7 +130,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) { @@ -146,7 +146,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 { @@ -424,11 +424,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]; |