X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirPatient.cxx;h=73680f8051df592defd78eac10bae7c8e14198f7;hb=e362e154b84f087750d1ed1f6671a34b3bf5ff7a;hp=58ad12948bda5b2903f58b108198510d1f1256df;hpb=3e82e8b67eddf5d4b95b6aa2a2e2615aced4c452;p=gdcm.git diff --git a/src/gdcmDicomDirPatient.cxx b/src/gdcmDicomDirPatient.cxx index 58ad1294..73680f80 100644 --- a/src/gdcmDicomDirPatient.cxx +++ b/src/gdcmDicomDirPatient.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirPatient.cxx,v $ Language: C++ - Date: $Date: 2005/02/02 10:02:16 $ - Version: $Revision: 1.37 $ + Date: $Date: 2005/10/25 14:52:33 $ + Version: $Revision: 1.39 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -34,7 +34,7 @@ namespace gdcm DicomDirPatient::DicomDirPatient(bool empty) :DicomDirObject() { - if( !empty ) + if ( !empty ) { ListDicomDirStudyElem const &elemList = Global::GetDicomDirElements()->GetDicomDirPatientElements(); @@ -75,9 +75,9 @@ void DicomDirPatient::WriteContent(std::ofstream *fp, FileType t) */ DicomDirStudy* DicomDirPatient::NewStudy() { - DicomDirStudy *st = new DicomDirStudy(); - Studies.push_back(st); - return st; + DicomDirStudy *dd = DicomDirStudy::New(); + Studies.push_back(dd); + return dd; } /** @@ -89,7 +89,7 @@ void DicomDirPatient::ClearStudy() cc != Studies.end(); ++cc ) { - delete *cc; + (*cc)->Delete(); } Studies.clear(); }