Commit d6f6c5b8 authored by Laurent Montel's avatar Laurent Montel 😁

Fix compile warning

parent 9c428d38
...@@ -87,6 +87,7 @@ void CustomDebugSettingsPage::fillList(const LoggingCategory::List &list) ...@@ -87,6 +87,7 @@ void CustomDebugSettingsPage::fillList(const LoggingCategory::List &list)
QString ruleStr; QString ruleStr;
ruleStr = cat.logName; ruleStr = cat.logName;
switch (cat.loggingType) { switch (cat.loggingType) {
case LoggingCategory::Undefined:
case LoggingCategory::All: case LoggingCategory::All:
break; break;
case LoggingCategory::Info: case LoggingCategory::Info:
......
...@@ -66,6 +66,7 @@ QString LoggingCategory::createCustomRule() ...@@ -66,6 +66,7 @@ QString LoggingCategory::createCustomRule()
str = logName + QStringLiteral(".critical=%1\n").arg(enabled ? QStringLiteral("true") : QStringLiteral("false")); str = logName + QStringLiteral(".critical=%1\n").arg(enabled ? QStringLiteral("true") : QStringLiteral("false"));
break; break;
} }
case Undefined:
case Off: { case Off: {
str = QString(); str = QString();
break; break;
...@@ -79,6 +80,9 @@ QString LoggingCategory::createRule() ...@@ -79,6 +80,9 @@ QString LoggingCategory::createRule()
{ {
QString str; QString str;
switch (loggingType) { switch (loggingType) {
case Undefined: {
break;
}
case All: { case All: {
str = logName + QLatin1String("=true\n"); str = logName + QLatin1String("=true\n");
break; break;
......
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