From 5494c33a891aa37868f06cf1d57ef304d9db2804 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 4 Mar 2010 20:33:48 +0000 Subject: [PATCH] Fix compilation with Qt 4.4 --- src/misc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/misc.h b/src/misc.h index 1171cc313..102d83c86 100644 --- a/src/misc.h +++ b/src/misc.h @@ -438,7 +438,7 @@ public: static QString magnetUriToName(QString magnet_uri) { QString name = ""; - const QRegExp regHex("dn=([^&]+)"); + QRegExp regHex("dn=([^&]+)"); const int pos = regHex.indexIn(magnet_uri); if(pos > -1) { const QString &found = regHex.cap(1); @@ -450,7 +450,7 @@ public: static QString magnetUriToHash(QString magnet_uri) { QString hash = ""; - const QRegExp regHex("urn:btih:([0-9A-Za-z]+)"); + QRegExp regHex("urn:btih:([0-9A-Za-z]+)"); // Hex int pos = regHex.indexIn(magnet_uri); if(pos > -1) { @@ -462,7 +462,7 @@ public: } } // Base 32 - const QRegExp regBase32("urn:btih:([A-Za-z2-7=]+)"); + QRegExp regBase32("urn:btih:([A-Za-z2-7=]+)"); pos = regBase32.indexIn(magnet_uri); if(pos > -1) { const QString &found = regBase32.cap(1);