X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestLoadAllDocumentsNoPrivNoSeq.cxx;h=8fa5711b2d31ae50cef027f300ce0fd67a5da023;hb=5071bc6d73c22304b8b139d040a02eb3e1f33407;hp=42a337aed7759e383d86b92249474d80b3fa326e;hpb=bc69950a406d06c50f0fb75a96572784965cb534;p=gdcm.git diff --git a/Testing/TestLoadAllDocumentsNoPrivNoSeq.cxx b/Testing/TestLoadAllDocumentsNoPrivNoSeq.cxx index 42a337ae..8fa5711b 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: 2007/06/21 14:59:06 $ + Version: $Revision: 1.5 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -54,10 +54,10 @@ int TestLoadAllDocumentsNoPrivNoSeq(int, char *[]) filename += "/"; //doh! filename += gdcmDataImages[i]; - gdcm::File *f= new gdcm::File( ); + GDCM_NAME_SPACE::File *f= GDCM_NAME_SPACE::File::New( ); f->SetFileName( filename ); // just to improve coverage - f->SetLoadMode (gdcm::LD_NOSEQ|gdcm::LD_NOSHADOW); + f->SetLoadMode (GDCM_NAME_SPACE::LD_NOSEQ|GDCM_NAME_SPACE::LD_NOSHADOW); f->Load(); /* @@ -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;