X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestPrintAllDocument.cxx;h=d083bf07b087277587fab69aada44f211c87d26d;hb=bb24380bd5858fc8b6bac2c262bd861365d81b47;hp=76215a247570bd4b0402b3f650865564a1b44409;hpb=bc69950a406d06c50f0fb75a96572784965cb534;p=gdcm.git diff --git a/Testing/TestPrintAllDocument.cxx b/Testing/TestPrintAllDocument.cxx index 76215a24..d083bf07 100644 --- a/Testing/TestPrintAllDocument.cxx +++ b/Testing/TestPrintAllDocument.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestPrintAllDocument.cxx,v $ Language: C++ - Date: $Date: 2005/10/18 08:35:46 $ - Version: $Revision: 1.9 $ + Date: $Date: 2005/10/25 14:52:31 $ + Version: $Revision: 1.10 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -53,7 +53,7 @@ int TestPrintAllDocument(int, char *[]) filename += "/"; //doh! filename += gdcmDataImages[i]; - gdcm::File *f= new gdcm::File( ); + gdcm::File *f= gdcm::File::New( ); f->SetFileName( filename ); f->Load(); @@ -116,10 +116,10 @@ int TestPrintAllDocument(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;