]> Creatis software - gdcm.git/blobdiff - Example/RawToDicom.cxx
Avoid warning
[gdcm.git] / Example / RawToDicom.cxx
index e39dc41673751ada4431adaf88445a51cbc8e306..a2ffe02cd2ab266b47a28516997ce454f27edd0a 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: RawToDicom.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/07/05 13:17:26 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2007/09/18 11:01:55 $
+  Version:   $Revision: 1.13 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -114,8 +114,8 @@ int main(int argc, char *argv[])
       
    if (am->ArgMgrDefined("debug"))
       GDCM_NAME_SPACE::Debug::DebugOn();
+   bool userDefinedStudy = ( 0 != am->ArgMgrDefined("studyUID") );
 
-   bool userDefinedStudy = am->ArgMgrDefined("studyUID");
    const char *studyUID;
    if (userDefinedStudy)
       studyUID  = am->ArgMgrGetString("studyUID");  
@@ -192,7 +192,7 @@ int main(int argc, char *argv[])
       return 1;
    }
  
-    std::string strStudyUID;
+   std::string strStudyUID;
    std::string strSerieUID;
 
    if (userDefinedStudy)
@@ -222,8 +222,6 @@ int main(int argc, char *argv[])
  
  // Get the (empty) image header.  
    GDCM_NAME_SPACE::File *fileToBuild = fileH->GetFile();
-     
-   
 
    // 'Study Instance UID'
    // The user is allowed to create his own Study,