X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmArgMgr.cxx;h=6564bce4e1639cbef20976329de5250f21baf225;hb=815950c4f1a07db8df223abb3a09f55dea081983;hp=b2df9c7c379205ad0cb7a4e9f74e5394623a5e6a;hpb=d8f1da6691e4ec0aeacf4b3e1c68fc2812f28cc6;p=gdcm.git diff --git a/src/gdcmArgMgr.cxx b/src/gdcmArgMgr.cxx index b2df9c7c..6564bce4 100644 --- a/src/gdcmArgMgr.cxx +++ b/src/gdcmArgMgr.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmArgMgr.cxx,v $ Language: C++ - Date: $Date: 2005/07/20 13:29:42 $ - Version: $Revision: 1.11 $ + Date: $Date: 2005/07/30 18:18:44 $ + Version: $Revision: 1.12 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -117,10 +117,10 @@ ArgMgr::~ArgMgr() /** * \brief checks if a parameter exists in the command line * @param param label name - * @return 0 if label is not found - * else, returns the number of the spot it was found last time. + * @return false if label is not found + * true if label is not found */ -int ArgMgr::ArgMgrDefined( const char *param ) +bool ArgMgr::ArgMgrDefined( const char *param ) { int i, trouve ; char *temp; @@ -136,7 +136,7 @@ int ArgMgr::ArgMgrDefined( const char *param ) if ( (!ArgUsed[j])&&(!strcmp(ArgLab[i],ArgLab[j])) ) ArgUsed[j] = true ; } - return i ; + return true ; } } return false ;