diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
commit | 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch) | |
tree | 073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kfile-plugins/torrent/bint.cpp | |
parent | 3467e6464beac3a162839bf7078e22e3a74d73e7 (diff) | |
download | tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip |
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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()) { |