diff options
Diffstat (limited to 'kfile-plugins/torrent/bint.cpp')
-rw-r--r-- | kfile-plugins/torrent/bint.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kfile-plugins/torrent/bint.cpp b/kfile-plugins/torrent/bint.cpp index eb96fcba..567edece 100644 --- a/kfile-plugins/torrent/bint.cpp +++ b/kfile-plugins/torrent/bint.cpp @@ -16,16 +16,16 @@ * If not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <qstring.h> -#include <qcstring.h> -#include <qiodevice.h> +#include <tqstring.h> +#include <tqcstring.h> +#include <tqiodevice.h> #include "bytetape.h" #include "bint.h" // A bencoded int is (approximately) as follows: // i(\d)+e -BInt::BInt (QByteArray &dict, int start) +BInt::BInt (TQByteArray &dict, int start) : m_value (0), m_valid(false) { ByteTape tape (dict, start); @@ -45,7 +45,7 @@ void BInt::init (ByteTape &tape) tape ++; // Move to start of digits - QByteArray &dict (tape.data()); + TQByteArray &dict (tape.data()); if (dict.find('e', tape.pos()) == -1) return; @@ -56,12 +56,12 @@ void BInt::init (ByteTape &tape) ptr += tape.pos(); // Advance to current position in tape // Allocate temporary data buffer - QByteArray buffer(length + 1); + TQByteArray buffer(length + 1); qmemmove (buffer.data(), ptr, length); buffer[length] = 0; // Null-terminate - QString numberString (buffer); + TQString numberString (buffer); bool a_isValid; // We want to make sure the string is a valid number m_value = numberString.toLongLong(&a_isValid); @@ -77,13 +77,13 @@ BInt::~BInt() /* Nothing yet */ } -bool BInt::writeToDevice (QIODevice &device) +bool BInt::writeToDevice (TQIODevice &device) { if (!m_valid) return false; /* Write out i234e, and such */ - QString str = QString("i%1e"). + TQString str = TQString("i%1e"). arg (m_value); Q_LONG written = 0, result = 0; |