Commit c5cac927 authored by dt's avatar dt

Simpler

parent 821d4941
......@@ -121,7 +121,7 @@ bool Qt4TargetFactory::canCreate(ProjectExplorer::Project *parent, const QString
Qt4Target *Qt4TargetFactory::create(ProjectExplorer::Project *parent, const QString &id)
{
return create(parent, id, QList<QtVersion*>() << 0);
return create(parent, id, QList<QtVersion*>());
}
Qt4Target *Qt4TargetFactory::create(ProjectExplorer::Project *parent, const QString &id, QList<QtVersion *> versions)
......@@ -136,7 +136,6 @@ Qt4Target *Qt4TargetFactory::create(ProjectExplorer::Project *parent, const QStr
if (knownVersions.isEmpty())
return t;
versions.removeAll(0);
if (versions.isEmpty())
versions.append(knownVersions.at(0));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment