diff options
author | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2021-05-28 18:22:44 +0300 |
---|---|---|
committer | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2021-06-01 08:11:56 +0000 |
commit | 1372dfdf7fc5e0ee04c064568bcd6e45da019db5 (patch) | |
tree | c5a5773549e95b4777ec200b1a9ab8bb937d3cf3 /src/plugins/android/androidpackageinstallationstep.cpp | |
parent | 41240ed70679ccd565c60fafd0b99aed5cb132e6 (diff) | |
download | qt-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.cpp | 12 |
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())); + } } } } |