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/bstring.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/bstring.cpp')
-rw-r--r-- | kfile-plugins/torrent/bstring.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kfile-plugins/torrent/bstring.cpp b/kfile-plugins/torrent/bstring.cpp index 924acdbc..acf16190 100644 --- a/kfile-plugins/torrent/bstring.cpp +++ b/kfile-plugins/torrent/bstring.cpp @@ -44,21 +44,21 @@ void BString::init (ByteTape &tape) { TQByteArray &dict(tape.data()); - if (dict.find(':', tape.pos()) == -1) + if (dict.tqfind(':', tape.pos()) == -1) { - kdDebug(7034) << "Can't find : for string!" << endl; + kdDebug(7034) << "Can't tqfind : for string!" << endl; return; } // Copy the part from start to :, as it will be a number // That number is the number of characters to read - int length = dict.find(':', tape.pos()) - tape.pos(); + int length = dict.tqfind(':', tape.pos()) - tape.pos(); char *ptr = dict.data(); ptr += tape.pos(); TQByteArray buffer (length + 1); - qmemmove (buffer.data(), ptr, length); + tqmemmove (buffer.data(), ptr, length); buffer[length] = 0; TQString numberString (buffer); @@ -85,10 +85,10 @@ void BString::init (ByteTape &tape) // Time to copy the data char *textBuffer = tape.at(tape.pos()); - if (!m_data.resize(len + 1)) + if (!m_data.tqresize(len + 1)) return; - qmemmove (m_data.data(), textBuffer, len); + tqmemmove (m_data.data(), textBuffer, len); m_data[len] = 0; // Null terminate for convienience tape += len; |