X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FVTKTestWriteSeq.cxx;h=debaf8c427489005ce1205e79e5c5a1d436b8e1e;hb=6278320cc85da00d2d56ffbf07806e84966892c3;hp=6db2132d3fe51ee1012ed595ef2d1edee31f0567;hpb=d1e4e23d5c207c567fb46b178855eee133e77e7d;p=gdcm.git diff --git a/Testing/VTKTestWriteSeq.cxx b/Testing/VTKTestWriteSeq.cxx index 6db2132d..debaf8c4 100644 --- a/Testing/VTKTestWriteSeq.cxx +++ b/Testing/VTKTestWriteSeq.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: VTKTestWriteSeq.cxx,v $ Language: C++ - Date: $Date: 2005/05/20 08:34:15 $ - Version: $Revision: 1.4 $ + Date: $Date: 2007/09/18 07:58:39 $ + Version: $Revision: 1.7 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -26,6 +26,7 @@ #include "vtkImageShiftScale.h" #include +#include //Generated file: #include "gdcmDataSeqImages.h" @@ -39,7 +40,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(); @@ -107,7 +108,7 @@ int VTKWriteSeqTest(vtkTesting *t, vtkImageViewer *viewer, // make test int ret = 0; - ostrstream str; + std::ostringstream str; char *newFilePng = new char[referenceFileName.size()+1]; for(int j=0;jfreeze(1); if( retVal == vtkTesting::PASSED ) { @@ -219,7 +219,7 @@ int VTKTestWriteSeq(int argc, char *argv[]) } } - gdcm::Debug::DebugOn(); + GDCM_NAME_SPACE::Debug::DebugOn(); int ret = 0; vtkTesting *t = vtkTesting::New();