Add missing variable initializations.

Change-Id: Ib3573ee41915fe750c8615755ee1d4355cb0137d
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
Christian Kandeler
2014-11-18 16:23:34 +01:00
parent 37b8e7252e
commit 293dcae8c7

View File

@@ -253,7 +253,7 @@ ExplainingStep ClangStaticAnalyzerLogFileReader::readPathDict()
}
}
bool depthOk;
bool depthOk = false;
while (m_xml.readNextStartElement()) {
if (m_xml.name() == QLatin1String("key")) {
@@ -291,7 +291,7 @@ Location ClangStaticAnalyzerLogFileReader::readLocationDict(bool elementIsRead)
int line = 0;
int column = 0;
int fileIndex = 0;
bool lineOk, columnOk, fileIndexOk;
bool lineOk = false, columnOk = false, fileIndexOk = false;
// Collect values
while (m_xml.readNextStartElement()) {