diff options
Diffstat (limited to 'kfile-plugins/torrent/bint.cpp')
-rw-r--r-- | kfile-plugins/torrent/bint.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kfile-plugins/torrent/bint.cpp b/kfile-plugins/torrent/bint.cpp index 567edece..0e23731c 100644 --- a/kfile-plugins/torrent/bint.cpp +++ b/kfile-plugins/torrent/bint.cpp @@ -46,19 +46,19 @@ void BInt::init (ByteTape &tape) tape ++; // Move to start of digits TQByteArray &dict (tape.data()); - if (dict.find('e', tape.pos()) == -1) + if (dict.tqfind('e', tape.pos()) == -1) return; // Copy the part from the start to the e. The values in-between // should be digits, perhaps preceded by a negative sign. - int length = dict.find('e', tape.pos()) - tape.pos(); + int length = dict.tqfind('e', tape.pos()) - tape.pos(); char *ptr = dict.data(); // Get start of buffer ptr += tape.pos(); // Advance to current position in tape // Allocate temporary data buffer TQByteArray buffer(length + 1); - qmemmove (buffer.data(), ptr, length); + tqmemmove (buffer.data(), ptr, length); buffer[length] = 0; // Null-terminate TQString numberString (buffer); @@ -86,7 +86,7 @@ bool BInt::writeToDevice (TQIODevice &device) TQString str = TQString("i%1e"). arg (m_value); - Q_LONG written = 0, result = 0; + TQ_LONG written = 0, result = 0; written = device.writeBlock (str.latin1(), str.length()); while ((uint) written < str.length()) { |