diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 20:17:34 +0900 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-02-03 21:07:35 +0100 |
commit | 05dbf5c0b1a80c03fd332cf9cd81e9247c1d7063 (patch) | |
tree | 2c8a0378f3e85768b4d9c291865fa1c4dbe435a7 /kdecore/ksycocadict.cpp | |
parent | 119bb1250355503e9b7f71b294cc502e7a9d6d95 (diff) | |
download | tdelibs-05dbf5c0b1a80c03fd332cf9cd81e9247c1d7063.tar.gz tdelibs-05dbf5c0b1a80c03fd332cf9cd81e9247c1d7063.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 'kdecore/ksycocadict.cpp')
-rw-r--r-- | kdecore/ksycocadict.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kdecore/ksycocadict.cpp b/kdecore/ksycocadict.cpp index d1deb609b..344a4009f 100644 --- a/kdecore/ksycocadict.cpp +++ b/kdecore/ksycocadict.cpp @@ -182,7 +182,7 @@ uint KSycocaDict::hashKey( const TQString &key) { int l = key.length(); - register uint h = 0; + uint h = 0; for(uint i = 0; i < mHashList.count(); i++) { @@ -217,10 +217,10 @@ calcDiversity(KSycocaDictStringList *d, int pos, int sz) pos = -pos-1; for(string_entry *entry=d->first(); entry; entry = d->next()) { - register int l = entry->length; + int l = entry->length; if (pos < l && pos != 0) { - register uint hash = ((entry->hash * 13) + (entry->key[l-pos].cell() % 29)) & 0x3ffffff; + uint hash = ((entry->hash * 13) + (entry->key[l-pos].cell() % 29)) & 0x3ffffff; matrix[ hash % usz ] = true; } } @@ -232,7 +232,7 @@ calcDiversity(KSycocaDictStringList *d, int pos, int sz) { if (pos < entry->length) { - register uint hash = ((entry->hash * 13) + (entry->key[pos].cell() % 29)) & 0x3ffffff; + uint hash = ((entry->hash * 13) + (entry->key[pos].cell() % 29)) & 0x3ffffff; matrix[ hash % usz ] = true; } } @@ -257,7 +257,7 @@ addDiversity(KSycocaDictStringList *d, int pos) pos = -pos-1; for(string_entry *entry=d->first(); entry; entry = d->next()) { - register int l = entry->length; + int l = entry->length; if (pos < l) entry->hash = ((entry->hash * 13) + (entry->key[l-pos].cell() % 29)) & 0x3fffffff; } @@ -306,7 +306,7 @@ KSycocaDict::save(TQDataStream &str) // use "almost prime" number for sz (to calculate diversity) and later // for the table size of big tables // int sz = d->count()*5-1; - register unsigned int sz = count()*4 + 1; + unsigned int sz = count()*4 + 1; while(!(((sz % 3) && (sz % 5) && (sz % 7) && (sz % 11) && (sz % 13)))) sz+=2; int maxDiv = 0; |