diff --git a/console/console.cpp b/console/console.cpp --- a/console/console.cpp +++ b/console/console.cpp @@ -165,10 +165,9 @@ return QStringLiteral("TV-C4"); case Output::DisplayPort: return QStringLiteral("DisplayPort"); - default: - return QStringLiteral("Invalid Type"); }; + return QStringLiteral("Invalid Type") + QString::number(type); } void Console::printJSONConfig() diff --git a/kded/generator.cpp b/kded/generator.cpp --- a/kded/generator.cpp +++ b/kded/generator.cpp @@ -258,10 +258,8 @@ return config; } - default: - // None: just return config - // Clone: handled above - break; + case Generator::None: // just return config + case Generator::Clone: // handled above } // switch return config;