소스 검색

Use EXIT_FAILURE define instead of hard-coded integers for exit code

Jean-Christophe Fillion-Robin 14 년 전
부모
커밋
1fc0df3b07
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Applications/ctkExampleHostedApp/ctkExampleHostedAppMain.cpp

+ 2 - 2
Applications/ctkExampleHostedApp/ctkExampleHostedAppMain.cpp

@@ -103,7 +103,7 @@ int main(int argv, char** argc)
   catch (const ctkPluginException& exc)
   {
     qCritical() << "Failed to initialize the plug-in framework:" << exc;
-    exit(2);
+    return EXIT_FAILURE;
   }
 
 #ifdef CMAKE_INTDIR
@@ -155,7 +155,7 @@ int main(int argv, char** argc)
     qCritical() << "Could not find plugin.";
     qCritical() << "  Plugin name: " << pluginName;
     qCritical() << "  Plugin path: " << pluginPath;
-    exit(3);
+    return EXIT_FAILURE;
   }
 
   // start the plugin framework