Commit 821a2ad6 authored by Nikolai Kosjar's avatar Nikolai Kosjar

Clang: Fix uninitialized values warnings

...from coverity scan.

Change-Id: Id669dd5de9a92bfec76e1aff3b8462caf9baa968
Reviewed-by: default avatarRobert Loehning <robert.loehning@qt.io>
Reviewed-by: Marco Bubke's avatarMarco Bubke <marco.bubke@qt.io>
parent df8e1266
......@@ -113,7 +113,7 @@ private:
Utf8String filePath_;
Utf8String projectPartId_;
static CMBIPC_EXPORT quint64 ticketCounter;
quint64 ticketNumber_;
quint64 ticketNumber_ = 0;
quint32 line_ = 0;
quint32 column_ = 0;
};
......
......@@ -158,7 +158,7 @@ private:
Utf8String disableOption_;
QVector<DiagnosticContainer> children_;
QVector<FixItContainer> fixIts_;
DiagnosticSeverity severity_;
DiagnosticSeverity severity_ = DiagnosticSeverity::Ignored;
};
CMBIPC_EXPORT QDebug operator<<(QDebug debug, const DiagnosticContainer &container);
......
......@@ -101,7 +101,7 @@ public:
private:
V2::SourceRangeContainer sourceRange_;
ClangQueryDiagnosticContextType contextType_;
ClangQueryDiagnosticContextType contextType_ = ClangQueryDiagnosticContextType::MatcherArg;
Utils::SmallStringVector arguments_;
};
......
......@@ -142,7 +142,7 @@ private:
Utf8String projectPartId_;
Utf8StringVector fileArguments_;
Utf8String unsavedFileContent_;
quint32 documentRevision_;
quint32 documentRevision_ = 0;
bool hasUnsavedFileContent_ = false;
};
......
......@@ -109,9 +109,9 @@ public:
}
private:
uint line_;
uint column_;
uint length_;
uint line_ = 0;
uint column_ = 0;
uint length_ = 0;
HighlightingTypes types_;
};
......
......@@ -49,8 +49,8 @@ public:
private:
Utf8String filePath_;
uint line_;
uint column_;
uint line_ = 0;
uint column_ = 0;
};
CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const SourceLocationContainer &container);
......
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