X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FexXCoherentFileSet.cxx;h=db2dd0e107f150f894b84c0caef7ef576cb93036;hb=779c8f5232ad160d353b90d3fa47d0503e17965d;hp=c60915dd3deea2e7d555aa5d5b2ad6ad9536e4e4;hpb=72ed6f4e0e142afcbdc21965587489aeb9a18a97;p=gdcm.git diff --git a/Example/exXCoherentFileSet.cxx b/Example/exXCoherentFileSet.cxx index c60915dd..db2dd0e1 100755 --- a/Example/exXCoherentFileSet.cxx +++ b/Example/exXCoherentFileSet.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: exXCoherentFileSet.cxx,v $ Language: C++ - Date: $Date: 2005/11/08 16:40:02 $ - Version: $Revision: 1.5 $ + Date: $Date: 2005/11/14 15:55:17 $ + Version: $Revision: 1.6 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -115,7 +115,7 @@ int main(int argc, char *argv[]) gdcm::SerieHelper *s; - s = new gdcm::SerieHelper(); + s = gdcm::SerieHelper::New(); s->SetLoadMode(gdcm::LD_ALL); // Load everything for each File //gdcm::TagKey t(0x0020,0x0013); //s->AddRestriction(t, "340", gdcm::GDCM_LESS); // Keep only files where @@ -187,7 +187,7 @@ int main(int argc, char *argv[]) l = s->GetNextSingleSerieUIDFileSet(); } - delete s; + s->Delete(); return 0; }