summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2016-06-24 07:33:12 +0200
committerMontel Laurent <[email protected]>2016-06-24 07:33:12 +0200
commitd6f6c5b8d591829ce0be8ded576986c297aa038a (patch)
treee8670fac32a2e66d33dd5569e62f0029c38f98dc
parent9c428d38385810058a57fd64ba87f6d8632ca6e4 (diff)
Fix compile warning
-rw-r--r--src/customdebugsettingspage.cpp1
-rw-r--r--src/loggingcategory.cpp4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/customdebugsettingspage.cpp b/src/customdebugsettingspage.cpp
index 18b98d2..2a2dc5f 100644
--- a/src/customdebugsettingspage.cpp
+++ b/src/customdebugsettingspage.cpp
@@ -87,6 +87,7 @@ void CustomDebugSettingsPage::fillList(const LoggingCategory::List &list)
QString ruleStr;
ruleStr = cat.logName;
switch (cat.loggingType) {
+ case LoggingCategory::Undefined:
case LoggingCategory::All:
break;
case LoggingCategory::Info:
diff --git a/src/loggingcategory.cpp b/src/loggingcategory.cpp
index 1580d4f..e19b1a2 100644
--- a/src/loggingcategory.cpp
+++ b/src/loggingcategory.cpp
@@ -66,6 +66,7 @@ QString LoggingCategory::createCustomRule()
str = logName + QStringLiteral(".critical=%1\n").arg(enabled ? QStringLiteral("true") : QStringLiteral("false"));
break;
}
+ case Undefined:
case Off: {
str = QString();
break;
@@ -79,6 +80,9 @@ QString LoggingCategory::createRule()
{
QString str;
switch (loggingType) {
+ case Undefined: {
+ break;
+ }
case All: {
str = logName + QLatin1String("=true\n");
break;