Fix release build warnings about unitialized variables.

Change-Id: I1a6ba631b0626969b328276a91561c34154c9a1c
Reviewed-on: http://codereview.qt.nokia.com/1920
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
Friedemann Kleint
2011-07-21 09:12:10 +02:00
parent 02f57e820b
commit c9ffc770aa
8 changed files with 11 additions and 9 deletions

View File

@@ -523,7 +523,7 @@ void MiniProjectTargetSelector::removeProject(ProjectExplorer::Project* project)
// Update display names
QString name = project->displayName();
int count = 0;
int otherIndex;
int otherIndex = -1;
for (int i = 0; i < m_projectsBox->count(); ++i) {
Project *p = m_projectsBox->itemData(i).value<Project*>();
if (p->displayName() == name) {