[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdecore/config
From: Albert Astals Cid <tsdgeos () terra ! es>
Date: 2010-09-11 21:57:31
Message-ID: 20100911220200.6D332AC888 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1174307 by aacid:
use QByteArray qstrcmp instaed of char * qstrcmp
Makes kconfigtest in release mode 1.75% faster
M +2 -2 kconfigdata.h
--- trunk/KDE/kdelibs/kdecore/config/kconfigdata.h #1174306:1174307
@@ -119,12 +119,12 @@
*/
inline bool operator <(const KEntryKey &k1, const KEntryKey &k2)
{
- int result = qstrcmp(k1.mGroup.constData(), k2.mGroup.constData());
+ int result = qstrcmp(k1.mGroup, k2.mGroup);
if (result != 0) {
return result < 0;
}
- result = qstrcmp(k1.mKey.constData(), k2.mKey.constData());
+ result = qstrcmp(k1.mKey, k2.mKey);
if (result != 0) {
return result < 0;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic