summaryrefslogtreecommitdiffstats
path: root/tdecore/tdesycocadict.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2020-01-30 20:17:34 +0900
committerMichele Calgaro <[email protected]>2020-01-30 23:52:42 +0900
commit41e0f335b5e2ab65cf47191a5b1c32adee2c24c3 (patch)
tree016b50163495e6d8607a1205b4e29179fbf56f8a /tdecore/tdesycocadict.cpp
parent9c1e136983b9361291646002b2c6c1f733ee13d4 (diff)
downloadtdelibs-41e0f335b5e2ab65cf47191a5b1c32adee2c24c3.tar.gz
tdelibs-41e0f335b5e2ab65cf47191a5b1c32adee2c24c3.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit aa98dbfe80580169f3df12489a77e8b904a1d9b9)
Diffstat (limited to 'tdecore/tdesycocadict.cpp')
-rw-r--r--tdecore/tdesycocadict.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tdecore/tdesycocadict.cpp b/tdecore/tdesycocadict.cpp
index 702c163a7..908ce8170 100644
--- a/tdecore/tdesycocadict.cpp
+++ b/tdecore/tdesycocadict.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;