1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 14:57:52 +00:00

- Fix compilation error with libtorrent v0.14.3

This commit is contained in:
Christophe Dumez 2010-01-12 08:23:18 +00:00
parent db9005158e
commit 9d79a51f18

View File

@ -474,8 +474,7 @@ public:
if(pos > -1) {
QString found = regHex.cap(1);
if(found.length() == 40) {
sha1_hash sha1;
sha1.assign(QString(QByteArray::fromHex(regHex.cap(1).toLocal8Bit())).toStdString());
sha1_hash sha1(QString(QByteArray::fromHex(regHex.cap(1).toLocal8Bit())).toStdString());
qDebug("magnetUriToHash (Hex): hash: %s", misc::toString(sha1).c_str());
return misc::toQString(sha1);
}
@ -486,8 +485,7 @@ public:
if(pos > -1) {
QString found = regBase32.cap(1);
if(found.length() > 20 && (found.length()*5)%40 == 0) {
sha1_hash sha1;
sha1.assign(base32decode(regBase32.cap(1).toStdString()));
sha1_hash sha1(base32decode(regBase32.cap(1).toStdString()));
hash = misc::toQString(sha1);
}
}