Remove default label for QtMsgType
Adding another category will most likely require a dedicated handling anyway, so better let the compiler warn about it. Change-Id: I323ca1250d82e33c086f1930e1df0a6337d6f16f Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
parent
4162522edd
commit
55880e6c18
@ -208,7 +208,6 @@ bool QLoggingCategory::isEnabled(QtMsgType msgtype) const
|
||||
case QtCriticalMsg: return enabledCritical;
|
||||
case QtTraceMsg: return enabledTrace;
|
||||
case QtFatalMsg: return true;
|
||||
default: break;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@ -232,8 +231,7 @@ void QLoggingCategory::setEnabled(QtMsgType type, bool enable)
|
||||
case QtWarningMsg: enabledWarning = enable; break;
|
||||
case QtCriticalMsg: enabledCritical = enable; break;
|
||||
case QtTraceMsg: enabledTrace = enable; break;
|
||||
case QtFatalMsg:
|
||||
default: break;
|
||||
case QtFatalMsg: break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user