]> Creatis software - gdcm.git/blobdiff - Testing/VTKTestWriteSeq.cxx
ENH: Apply a patch of 1400 lines to bring the DICOM dict in sync with the 2006 editio...
[gdcm.git] / Testing / VTKTestWriteSeq.cxx
index a34c018c3ec87ca2e3328d9d16869668993491ff..efd7a73c12e84ba2493e6bd5bbab738fe54668d2 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: VTKTestWriteSeq.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/03/23 20:26:13 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2005/09/08 14:40:15 $
+  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
@@ -39,7 +39,7 @@ int VTKWriteSeqTest(vtkTesting *t, vtkImageViewer *viewer,
                    std::string const &filename, 
                    std::string const &referenceFileName)
 {
-   int retVal = 0;  //by default this is an error
+   int retVal;
 
    // Set the reader   
    vtkGdcmReader *reader = vtkGdcmReader::New();
@@ -67,7 +67,8 @@ int VTKWriteSeqTest(vtkTesting *t, vtkImageViewer *viewer,
    // Write the image
    vtkGdcmWriter *writer = vtkGdcmWriter::New();
    writer->SetFilePattern("%s%02d.dcm");
-   writer->SetFilePrefix("TestWrite");
+   char filePrefix[] = "TestWrite";
+   writer->SetFilePrefix(filePrefix);
    writer->SetFileDimensionality(2);
    writer->SetInput(reader->GetOutput());
    writer->Write();