forked from qt-creator/qt-creator
Android: Clean/speed up some code.
Change-Id: I122bc317a32f938c57f79e93f65170de26f13202 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
bd95043c4b
commit
ccd2168219
@@ -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;
|
||||
|
Reference in New Issue
Block a user