Android: Clean/speed up some code.

Change-Id: I122bc317a32f938c57f79e93f65170de26f13202
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Tyler Mandry
2012-06-24 22:12:39 -07:00
committed by Tobias Hunger
parent bd95043c4b
commit ccd2168219

View File

@@ -232,9 +232,8 @@ QStringList AndroidConfigurations::sdkTargets(int minApiLevel) const
proc.terminate();
return targets;
}
QList<QByteArray> avds = proc.readAll().trimmed().split('\n');
for (int i = 0; i < avds.size(); i++) {
QString line = QLatin1String(avds[i]);
while (proc.canReadLine()) {
QString line = proc.readLine();
int index = line.indexOf(QLatin1String("\"android-"));
if (index == -1)
continue;