diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 20:17:34 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 23:52:42 +0900 |
| commit | 41e0f335b5e2ab65cf47191a5b1c32adee2c24c3 (patch) | |
| tree | 016b50163495e6d8607a1205b4e29179fbf56f8a /tdehtml/html/doctypes.cpp | |
| parent | 9c1e136983b9361291646002b2c6c1f733ee13d4 (diff) | |
| download | tdelibs-41e0f335b5e2ab65cf47191a5b1c32adee2c24c3.tar.gz tdelibs-41e0f335b5e2ab65cf47191a5b1c32adee2c24c3.zip | |
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit aa98dbfe80580169f3df12489a77e8b904a1d9b9)
Diffstat (limited to 'tdehtml/html/doctypes.cpp')
| -rw-r--r-- | tdehtml/html/doctypes.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tdehtml/html/doctypes.cpp b/tdehtml/html/doctypes.cpp index 332ad18fd..4c456dc71 100644 --- a/tdehtml/html/doctypes.cpp +++ b/tdehtml/html/doctypes.cpp @@ -51,7 +51,7 @@ inline #endif #endif static unsigned int -hash (register const char *str, register unsigned int len) +hash (register const char *str, unsigned int len) { static const unsigned short asso_values[] = { @@ -82,7 +82,7 @@ hash (register const char *str, register unsigned int len) 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731 }; - register int hval = len; + int hval = len; switch (hval) { @@ -334,7 +334,7 @@ hash (register const char *str, register unsigned int len) __inline #endif const struct PubIDInfo * -findDoctypeEntry (register const char *str, register unsigned int len) +findDoctypeEntry (register const char *str, unsigned int len) { enum { @@ -1160,11 +1160,11 @@ findDoctypeEntry (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]; |
