forked from qt-creator/qt-creator
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user