X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestLoadAllDocumentsNoPrivNoSeq.cxx;h=b6491ca0fbd01c0510b7a9ef78b972655f6d5caa;hb=d92b9d9e464607d503446b6decf0713c6a712638;hp=42a337aed7759e383d86b92249474d80b3fa326e;hpb=bc69950a406d06c50f0fb75a96572784965cb534;p=gdcm.git diff --git a/Testing/TestLoadAllDocumentsNoPrivNoSeq.cxx b/Testing/TestLoadAllDocumentsNoPrivNoSeq.cxx index 42a337ae..b6491ca0 100644 --- a/Testing/TestLoadAllDocumentsNoPrivNoSeq.cxx +++ b/Testing/TestLoadAllDocumentsNoPrivNoSeq.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestLoadAllDocumentsNoPrivNoSeq.cxx,v $ Language: C++ - Date: $Date: 2005/10/18 08:35:46 $ - Version: $Revision: 1.3 $ + Date: $Date: 2005/10/25 14:52:31 $ + Version: $Revision: 1.4 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -54,7 +54,7 @@ int TestLoadAllDocumentsNoPrivNoSeq(int, char *[]) filename += "/"; //doh! filename += gdcmDataImages[i]; - gdcm::File *f= new gdcm::File( ); + gdcm::File *f= gdcm::File::New( ); f->SetFileName( filename ); // just to improve coverage f->SetLoadMode (gdcm::LD_NOSEQ|gdcm::LD_NOSHADOW); @@ -120,11 +120,11 @@ int TestLoadAllDocumentsNoPrivNoSeq(int, char *[]) { std::cout << filename << " is NOT Readable" << std::endl << std::endl; - delete f; + f->Delete(); return 1; } */ - delete f; + f->Delete(); i++; } return 0;