From 6399d3a8349859f423c225c5fa8fd9231deeb9a2 Mon Sep 17 00:00:00 2001 From: Paul Olav Tvete Date: Tue, 1 Oct 2013 15:59:59 +0200 Subject: [PATCH] androiddeployqt: make it easier to diagnose problems Enumerate the enum so we don't have to count the values each time we need to make sense of the return code. Change-Id: Ibe168798fb167659688519b2cd833a1894a9deec Reviewed-by: Eskil Abrahamsen Blomfeldt --- src/androiddeployqt/main.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/androiddeployqt/main.cpp b/src/androiddeployqt/main.cpp index bc37740..7ad97ac 100644 --- a/src/androiddeployqt/main.cpp +++ b/src/androiddeployqt/main.cpp @@ -1854,22 +1854,22 @@ bool copyGdbServer(const Options &options) enum ErrorCode { Success, - SyntaxErrorOrHelpRequested, - CannotReadInputFile, - CannotCopyAndroidTemplate, - CannotReadDependencies, - CannotCopyGnuStl, - CannotCopyQtFiles, - CannotFindApplicationBinary, - CannotCopyGdbServer, - CannotStripLibraries, - CannotCopyAndroidExtraLibs, - CannotCopyAndroidSources, - CannotUpdateAndroidFiles, - CannotCreateAndroidProject, - CannotBuildAndroidProject, - CannotSignPackage, - CannotInstallApk + SyntaxErrorOrHelpRequested = 1, + CannotReadInputFile = 2, + CannotCopyAndroidTemplate = 3, + CannotReadDependencies = 4, + CannotCopyGnuStl = 5, + CannotCopyQtFiles = 6, + CannotFindApplicationBinary = 7, + CannotCopyGdbServer = 8, + CannotStripLibraries = 9, + CannotCopyAndroidExtraLibs = 10, + CannotCopyAndroidSources = 11, + CannotUpdateAndroidFiles = 12, + CannotCreateAndroidProject = 13, + CannotBuildAndroidProject = 14, + CannotSignPackage = 15, + CannotInstallApk = 16 }; int main(int argc, char *argv[]) -- 2.7.4