From 329b5524e57929ecf64495be9fe757b69ba64613 Mon Sep 17 00:00:00 2001 From: jpr Date: Thu, 3 Nov 2005 16:11:54 +0000 Subject: [PATCH] Modify TestValidate to compile with New() vs new --- Example/TestValidate.cxx | 6 +++--- Testing/TestValidate.cxx | 10 ++++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Example/TestValidate.cxx b/Example/TestValidate.cxx index 8df1960c..22d5272e 100755 --- a/Example/TestValidate.cxx +++ b/Example/TestValidate.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestValidate.cxx,v $ Language: C++ - Date: $Date: 2005/11/03 14:17:24 $ - Version: $Revision: 1.1 $ + Date: $Date: 2005/11/03 16:11:54 $ + Version: $Revision: 1.2 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -23,7 +23,7 @@ int main(int argc, char *argv[]) { if( argc < 2 ) { - std::cerr << "ouh les cornes / shame on you" << std::endl; + std::cerr << "ouh les cornes / shame on you / !inocente!" << std::endl; return 1; } diff --git a/Testing/TestValidate.cxx b/Testing/TestValidate.cxx index 62c9ffee..721581b4 100644 --- a/Testing/TestValidate.cxx +++ b/Testing/TestValidate.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestValidate.cxx,v $ Language: C++ - Date: $Date: 2005/07/05 18:47:38 $ - Version: $Revision: 1.2 $ + Date: $Date: 2005/11/03 16:11:56 $ + Version: $Revision: 1.3 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -27,9 +27,11 @@ int TestValidate(int argc, char *argv[]) return 1; } - const char *filename = argv[1]; + const char *filename = argv[1]; - gdcm::File *input = new gdcm::File( filename ); + gdcm::File *input = gdcm::File::New( ); + input->SetFileName(filename); + input->Load(); gdcm::Validator *v = new gdcm::Validator(); v->SetInput( input ); -- 2.45.1