From 71e301f91a69e77da1ac342898f671df7fa2f324 Mon Sep 17 00:00:00 2001 From: probonopd Date: Mon, 10 Oct 2016 17:41:58 +0200 Subject: [PATCH] Remove 2 compiler warnings --- shared/shared.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/shared/shared.cpp b/shared/shared.cpp index 7ec714c..ea1aa1c 100644 --- a/shared/shared.cpp +++ b/shared/shared.cpp @@ -1116,8 +1116,9 @@ void createAppImage(const QString &appDirPath) QFile appImage(appImagePath); LogDebug() << "appImageName:" << appImagePath; - if (appImage.exists() && alwaysOwerwriteEnabled) + if (appImage.exists() && alwaysOwerwriteEnabled){ appImage.remove(); + } if (appImage.exists()) { LogError() << "AppImage already exists, skipping .AppImage creation for" << appImage.fileName(); @@ -1157,10 +1158,12 @@ void createAppImage(const QString &appDirPath) // AppImageAssistant doesn't always give nonzero error codes, so we check for the presence of the AppImage file // This should eventually be fixed in AppImageAssistant if (!QFile(appDirPath).exists()) { - if(appImageAssistant.readAllStandardOutput().isEmpty() == false) + if(appImageAssistant.readAllStandardOutput().isEmpty() == false) { LogError() << "AppImageAssistant:" << appImageAssistant.readAllStandardOutput(); - if(appImageAssistant.readAllStandardError().isEmpty() == false) + } + if(appImageAssistant.readAllStandardError().isEmpty() == false){ LogError() << "AppImageAssistant:" << appImageAssistant.readAllStandardError(); + } } else { LogNormal() << "Created AppImage at" << appImagePath; }