X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirPatient.cxx;h=73680f8051df592defd78eac10bae7c8e14198f7;hb=4fbe563dc18455266f880586fa2aca2cfb1012bc;hp=c35b2f10a939d97715c2de7f5e3bf15560de9a88;hpb=d1c68c2c2ae9fadf927053150f7fbc625a7c7366;p=gdcm.git diff --git a/src/gdcmDicomDirPatient.cxx b/src/gdcmDicomDirPatient.cxx index c35b2f10..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/01 10:29:55 $ - Version: $Revision: 1.36 $ + 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 @@ -31,10 +31,10 @@ namespace gdcm * \brief Constructor * \note End user must use : DicomDir::NewPatient() */ -DicomDirPatient::DicomDirPatient(bool empty): - DicomDirObject() +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(); }