]> Creatis software - gdcm.git/blobdiff - Testing/TestAllReadCompareDicom.cxx
BUG: Remove demangle code this was seg faulting on some linux gcc 3.3.2 machine
[gdcm.git] / Testing / TestAllReadCompareDicom.cxx
index d94cd52d347bcefea3bb283d7c65706c242366ad..7ed852ec505544a1fc3ed0521ff6fb06405cf758 100644 (file)
@@ -8,7 +8,7 @@ int InternalTest(std::string const & filename, std::string const & referenceFile
 {
       std::cout << "   Testing: " << filename << std::endl;
 
-      gdcmFile* tested = new gdcmFile( filename );
+      gdcm::File* tested = new gdcm::File( filename );
       if( !tested->GetHeader()->IsReadable() )
       {
         std::cout << "      Image not gdcm compatible:"
@@ -35,7 +35,7 @@ int InternalTest(std::string const & filename, std::string const & referenceFile
                    << std::endl;
          delete tested;
          delete (char*)testedImageData;
-         //continue; 
+         return 0;
       }
       else
       {
@@ -44,7 +44,7 @@ int InternalTest(std::string const & filename, std::string const & referenceFile
 
       ////// When reference file is not gdcm readable test is failed:
   
-      gdcmFile* reference = new gdcmFile( referenceFileName.c_str() );
+      gdcm::File* reference = new gdcm::File( referenceFileName );
       if( !reference->GetHeader()->IsReadable() )
       {
          std::cout << "      Reference image " << std::endl