Commit 04a9422b authored by Daniel Teske's avatar Daniel Teske

AndroidConfig::apiLevelNamesFor: Rewrite using Utils::transform

Change-Id: I93f5f3248dc83ab5d53def6e86431354b431c26f
Reviewed-by: default avatarBogDan Vatra <bogdan@kde.org>
parent 64e5a543
......@@ -337,10 +337,7 @@ void AndroidConfig::updateAvailableSdkPlatforms() const
QStringList AndroidConfig::apiLevelNamesFor(const QList<SdkPlatform> &platforms)
{
QStringList results;
foreach (const SdkPlatform &platform, platforms)
results << QLatin1String("android-") + QString::number(platform.apiLevel);
return results;
return Utils::transform(platforms, AndroidConfig::apiLevelNameFor);
}
QString AndroidConfig::apiLevelNameFor(const SdkPlatform &platform)
......
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