]> Creatis software - gdcm.git/blobdiff - src/gdcmBinEntry.cxx
2004-09-23 Jean-Pierre Roux
[gdcm.git] / src / gdcmBinEntry.cxx
index cee3120fdf2c134707c6ba9c6868bcd51b90c8ab..47af8c38888458dcebd528afb2c88285982be9e6 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmBinEntry.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/09/10 14:32:04 $
-  Version:   $Revision: 1.25 $
+  Date:      $Date: 2004/09/23 09:40:30 $
+  Version:   $Revision: 1.29 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -28,7 +28,7 @@
  */
 gdcmBinEntry::gdcmBinEntry(gdcmDictEntry* e) : gdcmValEntry(e)
 {
-   VoidArea = NULL;
+   VoidArea = 0;
 }
 
 /**
@@ -42,7 +42,8 @@ gdcmBinEntry::gdcmBinEntry(gdcmDocEntry* e) : gdcmValEntry(e->GetDictEntry())
    ImplicitVR   = e->IsImplicitVR();
    Offset       = e->GetOffset();
    PrintLevel   = e->GetPrintLevel();
-   SQDepthLevel = e->GetDepthLevel();
+   //FIXME
+   //SQDepthLevel = e->GetDepthLevel();
 
    VoidArea = 0; // let's be carefull !
 }
@@ -54,7 +55,7 @@ gdcmBinEntry::~gdcmBinEntry()
 {
    if (VoidArea)
    {
-      free (VoidArea);
+      delete[] VoidArea;
       VoidArea = 0; // let's be carefull !
    }
 }
@@ -119,10 +120,10 @@ void gdcmBinEntry::Write(FILE *fp, FileType filetype)
 
 
 /// \brief Sets the value (non string) of the current Dicom Header Entry
-void gdcmBinEntry::SetVoidArea(void* area)  
+void gdcmBinEntry::SetVoidArea( uint8_t* area )  
 { 
    if (VoidArea)
-      free(VoidArea);
+      delete[] VoidArea;
    VoidArea = area;  
 }