]> Creatis software - clitk.git/blobdiff - common/clitkCommon.cxx
removed headers
[clitk.git] / common / clitkCommon.cxx
index 37866ab7468aaa66b3d8063af605905c026781b5..715c228ae589c9c10a38bb10eb5e8bc60bc2e2ec 100644 (file)
@@ -1,18 +1,5 @@
-/*-------------------------------------------------------------------------
-
-  Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
-  l'Image). All rights reserved. See Doc/License.txt or
-  http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
-                                                                                
-     This software is distributed WITHOUT ANY WARRANTY; without even
-     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
-     PURPOSE.  See the above copyright notices for more information.
-                                                                             
--------------------------------------------------------------------------*/
-
 #ifndef CLITKCOMMON_CXX
 #define CLITKCOMMON_CXX
-
 /**
    -------------------------------------------------
    * @file   clitkCommon.cxx
@@ -79,10 +66,10 @@ void clitk::VerboseInProgress(const int nb, const int current, const int percent
   previous = rounded;
 
   std::ostringstream oss;
-  oss << rounded << '%';
+  oss << std::setw(4) << rounded << '%';
 
   std::cout << oss.str() << std::flush;
-  for (int i=0; i<oss.str().length(); ++i) 
+  for (unsigned int i=0; i<oss.str().length(); ++i) 
        std::cout << "\b" << std::flush;
 }
 //------------------------------------------------------------------