qdoc: Initialize an uninitialized variable
authorMartin Smith <martin.smith@digia.com>
Thu, 7 Mar 2013 09:23:57 +0000 (10:23 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 7 Mar 2013 10:27:49 +0000 (11:27 +0100)
commita19c22ebf8775f73b840f52b7e03869166ca0dab
treee8474cb6f5f45621a2089f118ff8df3c791e121a
parent0e8520d18f700c42ffff12e111ee4fc25caac55a
qdoc: Initialize an uninitialized variable

qdoc already ignores QML signal handler comments
and does not report errors for missing QML signal
handler documentation. but the test case for this
bug revealed a separate bug. The test case contains
no import statements, which, technically is legal
but probably won't happen. Still, qdoc failed to
generate output for the test case QML file because
it didn't contain an import statement before the
first qdoc comment. This was caused by an
uninitialized variable, which has now been fixed.

Task-number: QTBUG-30043
Change-Id: Iafa2087b85a6c9e354b2be86c779bbd191181218
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
src/tools/qdoc/qmlvisitor.cpp