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();
|
proc.terminate();
|
||||||
return targets;
|
return targets;
|
||||||
}
|
}
|
||||||
QList<QByteArray> avds = proc.readAll().trimmed().split('\n');
|
while (proc.canReadLine()) {
|
||||||
for (int i = 0; i < avds.size(); i++) {
|
QString line = proc.readLine();
|
||||||
QString line = QLatin1String(avds[i]);
|
|
||||||
int index = line.indexOf(QLatin1String("\"android-"));
|
int index = line.indexOf(QLatin1String("\"android-"));
|
||||||
if (index == -1)
|
if (index == -1)
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user