summaryrefslogtreecommitdiffstats
path: root/libktorrent/util/sha1hash.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
commit1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch)
tree38559cd68cd4f63023fb5f6375def9db3b8b491e /libktorrent/util/sha1hash.cpp
parent894f94545727610df22c4f73911d62d58266f695 (diff)
downloadktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.tar.gz
ktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.zip
TQt4 port ktorrent
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1238733 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libktorrent/util/sha1hash.cpp')
-rw-r--r--libktorrent/util/sha1hash.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/libktorrent/util/sha1hash.cpp b/libktorrent/util/sha1hash.cpp
index c7b151c..6cdbbc4 100644
--- a/libktorrent/util/sha1hash.cpp
+++ b/libktorrent/util/sha1hash.cpp
@@ -17,7 +17,7 @@
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <qurl.h>
+#include <tqurl.h>
#include <string.h>
#include <algorithm>
#include "log.h"
@@ -72,10 +72,10 @@ namespace bt
return hg.generate(data,len);
}
- QString SHA1Hash::toString() const
+ TQString SHA1Hash::toString() const
{
char tmp[41];
- QString fmt;
+ TQString fmt;
for (int i = 0;i < 20;i++)
fmt += "%02x";
tmp[40] = '\0';
@@ -84,17 +84,17 @@ namespace bt
hash[5],hash[6],hash[7],hash[8],hash[9],
hash[10],hash[11],hash[12],hash[13],hash[14],
hash[15],hash[16],hash[17],hash[18],hash[19]);
- return QString(tmp);
+ return TQString(tmp);
}
- QByteArray SHA1Hash::toByteArray() const
+ TQByteArray SHA1Hash::toByteArray() const
{
- QByteArray arr(20);
+ TQByteArray arr(20);
arr.duplicate((const char*)hash,20);
return arr;
}
- QString SHA1Hash::toURLString() const
+ TQString SHA1Hash::toURLString() const
{
return URLEncoder::encode((const char*)hash,20);
}