summaryrefslogtreecommitdiff
path: root/src/plugins/android/androidpackageinstallationstep.cpp
diff options
context:
space:
mode:
authorAssam Boudjelthia <assam.boudjelthia@qt.io>2021-05-28 18:22:44 +0300
committerAssam Boudjelthia <assam.boudjelthia@qt.io>2021-06-01 08:11:56 +0000
commit1372dfdf7fc5e0ee04c064568bcd6e45da019db5 (patch)
treec5a5773549e95b4777ec200b1a9ab8bb937d3cf3 /src/plugins/android/androidpackageinstallationstep.cpp
parent41240ed70679ccd565c60fafd0b99aed5cb132e6 (diff)
downloadqt-creator-1372dfdf7fc5e0ee04c064568bcd6e45da019db5.tar.gz
Android: Fix multiple clang clazy warnings
Change-Id: I2ea6cebd16c09a8a4502f4719d99a9d85e5e7d02 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/android/androidpackageinstallationstep.cpp')
-rw-r--r--src/plugins/android/androidpackageinstallationstep.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/plugins/android/androidpackageinstallationstep.cpp b/src/plugins/android/androidpackageinstallationstep.cpp
index bd4fdc104f..bb196834dd 100644
--- a/src/plugins/android/androidpackageinstallationstep.cpp
+++ b/src/plugins/android/androidpackageinstallationstep.cpp
@@ -160,10 +160,14 @@ void AndroidPackageInstallationStep::doRun()
dir.mkpath(assetsDebugDir);
QFile file(assetsDebugDir + "debugger.command");
- if (file.open(QIODevice::WriteOnly))
- qCDebug(packageInstallationStepLog, "Successful added %s to the package.", qPrintable(file.fileName()));
- else
- qCDebug(packageInstallationStepLog, "Cound't add %s to the package. The QML debugger might not work properly.", qPrintable(file.fileName()));
+ if (file.open(QIODevice::WriteOnly)) {
+ qCDebug(packageInstallationStepLog, "Successful added %s to the package.",
+ qPrintable(file.fileName()));
+ } else {
+ qCDebug(packageInstallationStepLog,
+ "Cound't add %s to the package. The QML debugger might not work properly.",
+ qPrintable(file.fileName()));
+ }
}
}
}