]> Creatis software - gdcm.git/blobdiff - src/gdcmElementSet.cxx
2004-09-23 Jean-Pierre Roux
[gdcm.git] / src / gdcmElementSet.cxx
index ee6d9658232f4d27ef7172f867193ff571b0e506..28f1d01f9c085f34c2bb4944b9e9f39d538ffb0b 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmElementSet.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/09/16 19:21:57 $
-  Version:   $Revision: 1.19 $
+  Date:      $Date: 2004/09/22 01:01:36 $
+  Version:   $Revision: 1.21 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -32,6 +32,7 @@
 gdcmElementSet::gdcmElementSet(int depthLevel) 
               : gdcmDocEntrySet()
 {
+  (void)depthLevel;
 }
 
 /**
@@ -69,16 +70,13 @@ void gdcmElementSet::Print(std::ostream & os)
    {
       gdcmDocEntry* entry = i->second;
       entry->Print(os);   
-      bool PrintEndLine = true;
       if ( gdcmSeqEntry* seqEntry = dynamic_cast<gdcmSeqEntry*>(entry) )
       {
-         (void)seqEntry;  //not used
-         PrintEndLine = false;
-      }
-      if( PrintEndLine )
-      {
-         os << std::endl;
+         (void)seqEntry;
+         // Avoid the newline for a sequence:
+         continue;
       }
+      os << std::endl;
    }
 }