Commit 33ec3a5d authored by Laurent Montel's avatar Laurent Montel 😁

Minor

parent 1fe1ac8e
......@@ -75,7 +75,7 @@ RenameCategory::List KDebugSettingsUtil::readRenameCategories(const QString &fil
KdeLoggingCategory KDebugSettingsUtil::parseLineKdeLoggingCategory(QString line)
{
KdeLoggingCategory category;
int pos = line.indexOf(QLatin1Char('#'));
const int pos = line.indexOf(QLatin1Char('#'));
if (pos != -1) {
line.truncate(pos);
line = line.simplified();
......@@ -96,6 +96,7 @@ KdeLoggingCategory KDebugSettingsUtil::parseLineKdeLoggingCategory(QString line)
const QString description = line.mid(space).simplified();
category.logName = logName;
category.description = description;
//TODO add default categories ?
return category;
}
......
......@@ -126,9 +126,9 @@ QString LoggingCategory::createRule() const
QDebug operator<<(QDebug d, const LoggingCategory &cat)
{
d << "customcategories cat." << cat.description;
d << " logname" << cat.logName;
d << " enabled " << cat.enabled;
d << "type " << cat.loggingType;
d << "customcategories cat: " << cat.description;
d << "logname: " << cat.logName;
d << "enabled: " << cat.enabled;
d << "type: " << cat.loggingType;
return d;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment