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:14:04 +0900 |
commit | aa98dbfe80580169f3df12489a77e8b904a1d9b9 (patch) | |
tree | 483608a6346be3fa4d8f95d35a05952c81221b91 /tdehtml/html | |
parent | f29aa92d38e9e1f353ed48f7952150437db8c890 (diff) | |
download | tdelibs-aa98dbfe80580169f3df12489a77e8b904a1d9b9.tar.gz tdelibs-aa98dbfe80580169f3df12489a77e8b904a1d9b9.zip |
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdehtml/html')
-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]; |