forked from qt-creator/qt-creator
Android: Fix unnecessary warnings from qt about .arg
Change-Id: I780dcf3ebd174275389620319e2d4b4784c84346 Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: BogDan Vatra <bogdan@kde.org>
This commit is contained in:
@@ -914,7 +914,9 @@ QString AndroidManager::loadLocal(ProjectExplorer::Target *target, int apiLevel,
|
|||||||
while (!libElement.isNull()) {
|
while (!libElement.isNull()) {
|
||||||
if (libElement.attribute(QLatin1String("bundling")).toInt() == (item == BundledJar ? 1 : 0)) {
|
if (libElement.attribute(QLatin1String("bundling")).toInt() == (item == BundledJar ? 1 : 0)) {
|
||||||
if (libElement.hasAttribute(attribute)) {
|
if (libElement.hasAttribute(attribute)) {
|
||||||
QString dependencyLib = libElement.attribute(attribute).arg(apiLevel);
|
QString dependencyLib = libElement.attribute(attribute);
|
||||||
|
if (dependencyLib.contains(QLatin1String("%1")))
|
||||||
|
dependencyLib = dependencyLib.arg(apiLevel);
|
||||||
if (libElement.hasAttribute(QLatin1String("extends"))) {
|
if (libElement.hasAttribute(QLatin1String("extends"))) {
|
||||||
const QString extends = libElement.attribute(QLatin1String("extends"));
|
const QString extends = libElement.attribute(QLatin1String("extends"));
|
||||||
if (libs.contains(extends)) {
|
if (libs.contains(extends)) {
|
||||||
@@ -926,7 +928,9 @@ QString AndroidManager::loadLocal(ProjectExplorer::Target *target, int apiLevel,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (libElement.hasAttribute(QLatin1String("replaces"))) {
|
if (libElement.hasAttribute(QLatin1String("replaces"))) {
|
||||||
QString replacedLib = libElement.attribute(QLatin1String("replaces")).arg(apiLevel);
|
QString replacedLib = libElement.attribute(QLatin1String("replaces"));
|
||||||
|
if (replacedLib.contains(QLatin1String("%1")))
|
||||||
|
replacedLib = replacedLib.arg(apiLevel);
|
||||||
if (!replacedLibs.contains(replacedLib))
|
if (!replacedLibs.contains(replacedLib))
|
||||||
replacedLibs << replacedLib;
|
replacedLibs << replacedLib;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user