From aa98dbfe80580169f3df12489a77e8b904a1d9b9 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 30 Jan 2020 20:17:34 +0900 Subject: Removed explicit usage of the 'register' keyword. Signed-off-by: Michele Calgaro --- tdehtml/html/doctypes.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tdehtml/html') 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]; -- cgit v1.2.1