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

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

SVN commit 1212421 by mfuchs:

QRegExp is not thread safe but reentrant. Thx aseigo for the tip.
BUG:261168

 M  +1 -1      locationrunner.cpp  


--- trunk/KDE/kdebase/workspace/plasma/generic/runners/locations/locationrunner.cpp \
#1212420:1212421 @@ -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