QLoggingRule: default initialize 'messageType' member
Fixes Axivion(SV70928): Qt-Generic-InitializeAllFieldsInConstructor Task-number: QTBUG-122619 Change-Id: Ida5ed45c6bce30541fb268f7aeb4339eca2f4dbe Reviewed-by: Kai Köhne <kai.koehne@qt.io>
This commit is contained in:
parent
232f3bc768
commit
c6a2f7a70e
@ -32,8 +32,7 @@ Q_GLOBAL_STATIC(QLoggingRegistry, qtLoggingRegistry)
|
|||||||
\internal
|
\internal
|
||||||
Constructs a logging rule with default values.
|
Constructs a logging rule with default values.
|
||||||
*/
|
*/
|
||||||
QLoggingRule::QLoggingRule() :
|
QLoggingRule::QLoggingRule()
|
||||||
enabled(false)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,9 +40,7 @@ QLoggingRule::QLoggingRule() :
|
|||||||
\internal
|
\internal
|
||||||
Constructs a logging rule.
|
Constructs a logging rule.
|
||||||
*/
|
*/
|
||||||
QLoggingRule::QLoggingRule(QStringView pattern, bool enabled) :
|
QLoggingRule::QLoggingRule(QStringView pattern, bool enabled) : enabled(enabled)
|
||||||
messageType(-1),
|
|
||||||
enabled(enabled)
|
|
||||||
{
|
{
|
||||||
parse(pattern);
|
parse(pattern);
|
||||||
}
|
}
|
||||||
|
@ -55,9 +55,9 @@ public:
|
|||||||
Q_DECLARE_FLAGS(PatternFlags, PatternFlag)
|
Q_DECLARE_FLAGS(PatternFlags, PatternFlag)
|
||||||
|
|
||||||
QString category;
|
QString category;
|
||||||
int messageType;
|
int messageType = -1;
|
||||||
PatternFlags flags;
|
PatternFlags flags;
|
||||||
bool enabled;
|
bool enabled = false;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void parse(QStringView pattern);
|
void parse(QStringView pattern);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user