diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2013-10-28 11:16:45 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-30 08:29:49 +0100 |
commit | c084d32d92b2df55532fa1599e590c29bf2b5bfb (patch) | |
tree | 3c843fb09f04138413d3c721b636d816864e88af /tools/qml/main.cpp | |
parent | 2f26ea36375f8a04dac93cb3978804762ca06265 (diff) |
qml tool: compiles with clang
The error was that app can be uninitialized if the switch goes into
the default branch.
Change-Id: Ic690e1dd257cf88ee04d019b5b81121cecb48564
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Diffstat (limited to 'tools/qml/main.cpp')
-rw-r--r-- | tools/qml/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qml/main.cpp b/tools/qml/main.cpp index d9857e5b1a..80b3d11802 100644 --- a/tools/qml/main.cpp +++ b/tools/qml/main.cpp @@ -350,7 +350,7 @@ static void loadDummyDataFiles(QQmlEngine &engine, const QString& directory) int main(int argc, char *argv[]) { getAppFlags(argc, argv); - QCoreApplication *app; + QCoreApplication *app = 0; switch (applicationType) { case QmlApplicationTypeCore: app = new QCoreApplication(argc, argv); |