]> Creatis software - gdcm.git/blobdiff - src/gdcmSQItem.cxx
remove 'tab' caracters
[gdcm.git] / src / gdcmSQItem.cxx
index 709456b363566e60feb1d23080c75ebc176bcebb..82c4ed3dfb1f2986c1ebc1c517c4e36d80215346 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmSQItem.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/06/22 13:47:33 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2004/06/23 02:13:14 $
+  Version:   $Revision: 1.15 $
   
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -90,16 +90,16 @@ gdcmSQItem::~gdcmSQItem()
       (Entry)->WriteCommonPart(fp, filetype);
 
       if (gdcmBinEntry* BinEntry = dynamic_cast< gdcmBinEntry* >(Entry) ) {
-         BinEntry->Write(fp,filetype);
-                       return;
+         BinEntry->Write(fp);
+         return;
       }
       if (gdcmValEntry* ValEntry = dynamic_cast< gdcmValEntry* >(Entry) ) {
-         ValEntry->Write(fp,filetype);
-                       return;
+         ValEntry->Write(fp);
+         return;
       }
       if (gdcmSeqEntry* SeqEntry = dynamic_cast< gdcmSeqEntry* >(Entry) ) {
          SeqEntry->Write(fp,filetype);
-                       return;
+         return;
       }
    } 
 }
@@ -145,7 +145,7 @@ bool gdcmSQItem::SetEntryByNumber(std::string val,guint16 group,
          // that is a method of gdcmDocument :-( 
          gdcmValEntry* Entry = (gdcmValEntry*)0;
          TagKey key = gdcmDictEntry::TranslateToKey(group, element);
-                       
+
          if ( ! ptagHT->count(key))
          {
             // we assume a Public Dictionnary *is* loaded
@@ -179,7 +179,7 @@ bool gdcmSQItem::SetEntryByNumber(std::string val,guint16 group,
          Entry->SetLength(val.length());
          docEntries.insert(i,Entry); 
          return true;
-      }           
+      }   
       if (group == (*i)->GetGroup() && element == (*i)->GetElement() )
       {
          if ( gdcmValEntry* Entry = dynamic_cast<gdcmValEntry*>(*i) )
@@ -188,6 +188,7 @@ bool gdcmSQItem::SetEntryByNumber(std::string val,guint16 group,
          return true;    
       }
    }
+   return false;
 }
 //-----------------------------------------------------------------------------
 // Protected