diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-07 03:45:53 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-07 03:45:53 +0000 |
commit | 10308be19ef7fa44699562cc75946e7ea1fdf6b9 (patch) | |
tree | 4bc444c00a79e88105f2cfce5b6209994c413ca0 /kdecore/ksycocadict.cpp | |
parent | 307136d8eef0ba133b78ceee8e901138d4c996a1 (diff) | |
download | tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.tar.gz tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.zip |
Revert automated changes
Sorry guys, they are just not ready for prime time
Work will continue as always
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/ksycocadict.cpp')
-rw-r--r-- | kdecore/ksycocadict.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kdecore/ksycocadict.cpp b/kdecore/ksycocadict.cpp index f35eadd22..ce7529682 100644 --- a/kdecore/ksycocadict.cpp +++ b/kdecore/ksycocadict.cpp @@ -29,7 +29,7 @@ namespace { struct string_entry { string_entry(TQString _key, KSycocaEntry *_payload) - { keyStr = _key; key = keyStr.tqunicode(); length = keyStr.length(); payload = _payload; hash = 0; } + { keyStr = _key; key = keyStr.unicode(); length = keyStr.length(); payload = _payload; hash = 0; } uint hash; int length; const TQChar *key; @@ -59,7 +59,7 @@ KSycocaDict::KSycocaDict() KSycocaDict::KSycocaDict(TQDataStream *str, int offset) : d(0), mStr(str), mOffset(offset) { - TQ_UINT32 test1, test2; + Q_UINT32 test1, test2; str->device()->at(offset); (*str) >> test1 >> test2; if ((test1 > 0x000fffff) || (test2 > 1024)) @@ -123,17 +123,17 @@ KSycocaDict::find_string(const TQString &key ) } if (mHashTableSize == 0) - return 0; // Unlikely to tqfind anything :-] + return 0; // Unlikely to find anything :-] // Read hash-table data uint hash = hashKey(key) % mHashTableSize; //kdDebug(7011) << TQString("hash is %1").arg(hash) << endl; - uint off = mOffset+sizeof(TQ_INT32)*hash; + uint off = mOffset+sizeof(Q_INT32)*hash; //kdDebug(7011) << TQString("off is %1").arg(off,8,16) << endl; mStr->device()->at( off ); - TQ_INT32 offset; + Q_INT32 offset; (*mStr) >> offset; //kdDebug(7011) << TQString("offset is %1").arg(offset,8,16) << endl; @@ -411,13 +411,13 @@ KSycocaDict::save(TQDataStream &str) //kdDebug(7011) << TQString("Writing hash table (pass #%1)").arg(pass) << endl; for(uint i=0; i < mHashTableSize; i++) { - TQ_INT32 tmpid; + Q_INT32 tmpid; if (!hashTable[i].entry) - tmpid = (TQ_INT32) 0; + tmpid = (Q_INT32) 0; else if (!hashTable[i].duplicates) - tmpid = (TQ_INT32) hashTable[i].entry->payload->offset(); // Positive ID + tmpid = (Q_INT32) hashTable[i].entry->payload->offset(); // Positive ID else - tmpid = (TQ_INT32) -hashTable[i].duplicate_offset; // Negative ID + tmpid = (Q_INT32) -hashTable[i].duplicate_offset; // Negative ID str << tmpid; //kdDebug(7011) << TQString("Hash table : %1").arg(tmpid,8,16) << endl; } @@ -435,10 +435,10 @@ KSycocaDict::save(TQDataStream &str) */ for(string_entry *dup = dups->first(); dup; dup=dups->next()) { - str << (TQ_INT32) dup->payload->offset(); // Positive ID + str << (Q_INT32) dup->payload->offset(); // Positive ID str << dup->keyStr; // Key (TQString) } - str << (TQ_INT32) 0; // End of list marker (0) + str << (Q_INT32) 0; // End of list marker (0) } } //kdDebug(7011) << TQString("End of Dict, offset = %1").arg(str.device()->at(),8,16) << endl; |