[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.6/kdebase/workspace/plasma/generic/runners/locations
From:       Matthias Fuchs <mat69 () gmx ! net>
Date:       2011-01-06 23:30:15
Message-ID: 20110106233015.5476EAC8B0 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1212426 by mfuchs:

Backport r1212421
QRegExp is not thread safe but reentrant. Thx aseigo for the tip.
CCBUG:261168

 M  +1 -1      locationrunner.cpp  


--- branches/KDE/4.6/kdebase/workspace/plasma/generic/runners/locations/locationrunner.cpp \
#1212425:1212426 @@ -96,7 +96,7 @@
     static const QString ipv4('(' + ip4vPart + "\\." + ip4vPart + "\\." + ip4vPart + \
"\\." + ip4vPart + ')');  static const QString fqnd("([^/]+\\.[a-zA-Z]{2,})");
     static const QString host("^(" + ipv4 + '|' + fqnd + ")");
-    static QRegExp rx(host + "(/.*)?$", Qt::CaseSensitive, QRegExp::RegExp2);
+    QRegExp rx(host + "(/.*)?$", Qt::CaseSensitive, QRegExp::RegExp2);
 
     const KUrl url(term);
     return (!url.protocol().isEmpty() || rx.exactMatch(term));


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic