X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FTestValidate.cxx;h=8cbd611320d60cc2cbd8120452bd9e5e10a23ecc;hb=cfc4bc0156d2846054d5e79cc6a9b5770a2a729f;hp=8df1960c8483e19a26ebc403c1693942d3092694;hpb=4297b237d3010e089a89e0242d4151168553778f;p=gdcm.git diff --git a/Example/TestValidate.cxx b/Example/TestValidate.cxx index 8df1960c..8cbd6113 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/18 11:09:06 $ + 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 @@ -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; } @@ -32,7 +32,7 @@ int main(int argc, char *argv[]) gdcm::File *input = gdcm::File::New( ); input->SetFileName(filename); input->Load(); - gdcm::Validator *v = new gdcm::Validator(); + gdcm::Validator *v = gdcm::Validator::New(); v->SetInput( input ); return 0;