diff options
Diffstat (limited to 'kfile-plugins/torrent/bdict.cpp')
-rw-r--r-- | kfile-plugins/torrent/bdict.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kfile-plugins/torrent/bdict.cpp b/kfile-plugins/torrent/bdict.cpp index 2dd7457e..4819165c 100644 --- a/kfile-plugins/torrent/bdict.cpp +++ b/kfile-plugins/torrent/bdict.cpp @@ -16,8 +16,8 @@ * If not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <qstringlist.h> -#include <qiodevice.h> +#include <tqstringlist.h> +#include <tqiodevice.h> #include <kdebug.h> @@ -27,7 +27,7 @@ #include "bint.h" #include "blist.h" -BDict::BDict (QByteArray &dict, int start) +BDict::BDict (TQByteArray &dict, int start) : m_map(), m_valid(false) { ByteTape tape(dict, start); @@ -108,7 +108,7 @@ void BDict::init (ByteTape &tape) BDict::~BDict () { - // QDict will take care of deleting each entry that + // TQDict will take care of deleting each entry that // it holds. } @@ -152,7 +152,7 @@ BString *BDict::findStr (const char *key) return 0; } -bool BDict::writeToDevice(QIODevice &device) +bool BDict::writeToDevice(TQIODevice &device) { if (!isValid()) return false; @@ -172,25 +172,25 @@ bool BDict::writeToDevice(QIODevice &device) } // Strings are supposed to be written in the dictionary such that - // the keys are in sorted order. QDictIterator doesn't support an + // the keys are in sorted order. TQDictIterator doesn't support an // ordering, so we have to get a list of all the keys, sort it, and // then go by the list. BBaseHashIterator iter (m_map); - QStringList key_list; + TQStringList key_list; for ( ; iter.current(); ++iter) key_list.append(iter.currentKey()); key_list.sort(); - QStringList::Iterator key_iter; + TQStringList::Iterator key_iter; for (key_iter = key_list.begin(); key_iter != key_list.end(); ++key_iter) { - QCString utfString = (*key_iter).utf8(); - QString str = QString("%1:").arg(utfString.size() - 1); + TQCString utfString = (*key_iter).utf8(); + TQString str = TQString("%1:").arg(utfString.size() - 1); - QCString lenString = str.utf8(); + TQCString lenString = str.utf8(); // Write out length of key device.writeBlock(lenString.data(), lenString.size() - 1); |