Commit ccd21682 authored by Tyler Mandry's avatar Tyler Mandry Committed by Tobias Hunger
Browse files

Android: Clean/speed up some code.



Change-Id: I122bc317a32f938c57f79e93f65170de26f13202
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent bd95043c
...@@ -232,9 +232,8 @@ QStringList AndroidConfigurations::sdkTargets(int minApiLevel) const ...@@ -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;
......
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