[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdecore/services
From: Albert Astals Cid <tsdgeos () terra ! es>
Date: 2010-09-12 18:41:24
Message-ID: 20100912184124.C36D9AC887 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1174524 by aacid:
Add some QLatin1Char, makes KMimeGlobsFileParser::AllGlobs::addGlob 5% faster
M +4 -4 kmimeglobsfileparser.cpp
--- trunk/KDE/kdelibs/kdecore/services/kmimeglobsfileparser.cpp #1174523:1174524
@@ -147,11 +147,11 @@
static bool isFastPattern(const QString& pattern)
{
// starts with "*.", has no other '*' and no other '.'
- return pattern.lastIndexOf('*') == 0
- && pattern.lastIndexOf('.') == 1
+ return pattern.lastIndexOf(QLatin1Char('*')) == 0
+ && pattern.lastIndexOf(QLatin1Char('.')) == 1
// and contains no other special character
- && !pattern.contains('?')
- && !pattern.contains('[')
+ && !pattern.contains(QLatin1Char('?'))
+ && !pattern.contains(QLatin1Char('['))
;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic