X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FexXCoherentFileSet.cxx;h=567eff75e3778d4e90a08722afa3b3d3461ea679;hb=d94e941f0ae036439588c12fc8d5f6d17c6ceaca;hp=c60915dd3deea2e7d555aa5d5b2ad6ad9536e4e4;hpb=1f4b804082d56e199031a5380165eff84750f8a8;p=gdcm.git diff --git a/Example/exXCoherentFileSet.cxx b/Example/exXCoherentFileSet.cxx index c60915dd..567eff75 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: 2006/01/26 15:52:43 $ + Version: $Revision: 1.7 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -71,7 +71,7 @@ int main(int argc, char *argv[]) loadMode |= gdcm::LD_NOSEQ; } - char *dirName = am->ArgMgrGetString("dirin",(char *)0); + const char *dirName = am->ArgMgrGetString("dirin"); if (dirName == 0) { std::cout <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; }