X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirPatient.cxx;h=73680f8051df592defd78eac10bae7c8e14198f7;hb=e362e154b84f087750d1ed1f6671a34b3bf5ff7a;hp=7c2b598de7dd780f5c52932c5630005cad4b7197;hpb=9ca0e4bb2208be93bebf21d0c5d75c8018e7605a;p=gdcm.git diff --git a/src/gdcmDicomDirPatient.cxx b/src/gdcmDicomDirPatient.cxx index 7c2b598d..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/06/24 10:55:58 $ - Version: $Revision: 1.38 $ + 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 @@ -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(); }