[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdecore/config
From: David Faure <faure () kde ! org>
Date: 2010-11-26 20:39:37
Message-ID: 20101126203937.6CEADAC8A4 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1201120 by dfaure:
make the commented out debug output compile again (and much simplification)
M +4 -12 kconfigdata.h
--- trunk/KDE/kdelibs/kdecore/config/kconfigdata.h #1201119:1201120
@@ -261,9 +261,7 @@
k.bDefault = (options&EntryDefault);
k.bRaw = (options&EntryRawKey);
-/* qDebug() << "changing" << \
QString("[%1,%2]").arg(group).arg(key).toLatin1().constData()
- << '=' << maybeNull(e.mValue)
- << entryDataToQString(e).toLatin1().constData();*/
+ //qDebug() << "changing [" << group << "," << key << "] =" << e.mValue;
e.mValue = value;
e.bDirty = e.bDirty || (options&EntryDirty);
e.bGlobal = (options&EntryGlobal); //we can't use || here, because \
changes to entries in @@ -276,9 +274,7 @@
e.bDeleted = false; // setting a value to a previously deleted entry
e.bExpand = (options&EntryExpansion);
-// qDebug() << "to" << \
QString("[%1,%2]").arg(group).arg(key).toLatin1().constData()
-// << '=' << maybeNull(e.mValue)
-// << entryDataToQString(e).toLatin1().constData();
+ //qDebug() << "to [" << group << "," << key << "] =" << e.mValue;
if(newKey)
{
insert(k, e);
@@ -437,9 +433,7 @@
{
Iterator entry = findEntry(group, key, flags);
if (entry != end()) {
-/* qDebug() << "reverting" << \
QString("[%1,%2]").arg(group).arg(key).toLatin1().constData()
- << '=' << entry->mValue
- << entryDataToQString(*entry).toLatin1().constData();*/
+ //qDebug() << "reverting [" << group << "," << key << "] = " << \
entry->mValue; const ConstIterator defaultEntry(entry+1);
if (defaultEntry != constEnd() && defaultEntry.key().bDefault) {
*entry = *defaultEntry;
@@ -449,9 +443,7 @@
entry->bDirty = true;
entry->bDeleted = true;
}
-/* qDebug() << "to" << \
QString("[%1,%2]").arg(group).arg(key).toLatin1().constData()
- << '=' << entry->mValue
- << entryDataToQString(*entry).toLatin1().constData();*/
+ //qDebug() << "to [" << group << "," << key << "] =" << \
entry->mValue; }
}
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic