From 220bc3aed4640d14cac5b3ad3532cfb78134210f Mon Sep 17 00:00:00 2001
From: Julien Malik <julien.malik@c-s.fr>
Date: Fri, 16 Sep 2011 10:50:36 +0200
Subject: [PATCH] WRG: comparison signed/unsigned

---
 .../otbApplicationLauncherCommandLine.cxx     | 35 +++++++++----------
 1 file changed, 16 insertions(+), 19 deletions(-)

diff --git a/Code/Wrappers/CommandLine/otbApplicationLauncherCommandLine.cxx b/Code/Wrappers/CommandLine/otbApplicationLauncherCommandLine.cxx
index a8fa447e28..26bd976664 100644
--- a/Code/Wrappers/CommandLine/otbApplicationLauncherCommandLine.cxx
+++ b/Code/Wrappers/CommandLine/otbApplicationLauncherCommandLine.cxx
@@ -18,7 +18,6 @@
 
 #include "otbWrapperCommandLineLauncher.h"
 
-
 int main(int argc, char* argv[])
 {
   if (argc < 2)
@@ -27,36 +26,34 @@ int main(int argc, char* argv[])
     return EXIT_FAILURE;
     }
 
-
   // Construct the string expression
   std::string exp;
-  for( unsigned int i=1; i<argc; i++)
+  for (int i = 1; i < argc; i++)
     {
-      if( i!= argc-1)
-        {
-          exp.append(argv[i]);
-          exp.append(" ");
-        }
-      else
-        {
-          exp.append(argv[i]);
-        }
-
+    if (i != argc - 1)
+      {
+      exp.append(argv[i]);
+      exp.append(" ");
+      }
+    else
+      {
+      exp.append(argv[i]);
+      }
     }
 
   typedef otb::Wrapper::CommandLineLauncher LauncherType;
   LauncherType::Pointer launcher = LauncherType::New();
 
-  if (launcher->Load( exp ) == true )
+  if (launcher->Load(exp) == true)
     {
-      if (launcher->ExecuteAndWriteOutput() == false)
-        {
-          return EXIT_FAILURE;
-        }
+    if (launcher->ExecuteAndWriteOutput() == false)
+      {
+      return EXIT_FAILURE;
+      }
     }
   else
     {
-      return EXIT_FAILURE;
+    return EXIT_FAILURE;
     }
 
   return EXIT_SUCCESS;
-- 
GitLab