diff options
author | Tobias Hunger <tobias.hunger@nokia.com> | 2010-06-18 13:34:35 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@nokia.com> | 2010-06-18 13:34:35 +0200 |
commit | 443d5d3dc6c77c7bd544cf3523c8a155dcfc05b0 (patch) | |
tree | 0c853285269576f9f3c0c95f4eefcb651685aebe /src/plugins/projectexplorer/projectwindow.cpp | |
parent | fd00ec23ec1c5297d05a05ba012f649b3608d1f0 (diff) | |
download | qt-creator-443d5d3dc6c77c7bd544cf3523c8a155dcfc05b0.tar.gz |
Make sure to initialize a variable
... otherwise the ASSERT will not trigger when it should.
Diffstat (limited to 'src/plugins/projectexplorer/projectwindow.cpp')
-rw-r--r-- | src/plugins/projectexplorer/projectwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/projectwindow.cpp b/src/plugins/projectexplorer/projectwindow.cpp index e1c15fc339..d6b4e505cb 100644 --- a/src/plugins/projectexplorer/projectwindow.cpp +++ b/src/plugins/projectexplorer/projectwindow.cpp @@ -409,7 +409,7 @@ void ProjectWindow::showProperties(int index, int subIndex) if (fac) { removeCurrentWidget(); - IPropertiesPanel *panel; + IPropertiesPanel *panel = 0; if (ITargetPanelFactory *ipf = qobject_cast<ITargetPanelFactory *>(fac)) panel = ipf->createPanel(project->activeTarget()); else if (IProjectPanelFactory *ipf = qobject_cast<IProjectPanelFactory *>(fac)) |