]> Creatis software - gdcm.git/blobdiff - Testing/TestWriteSimple.cxx
Jean-Pierre Roux
[gdcm.git] / Testing / TestWriteSimple.cxx
index 74531f9b75147ce047f6c2228ec14ba0a18aaedb..51b3f4d9bfb2eec72b6894a36d8c492c39fbb665 100644 (file)
@@ -10,15 +10,15 @@ int TestWriteSimple(int argc, char* argv[])
     {
     std::cerr << "Usage :" << std::endl << argv[0] << 
       " InputHeader OutputDicom" << std::endl;
-    return 0;  
+    return 0;
     }
 
-  const char *header = argv[1];
+  std::string header = argv[1];
   const char *output = argv[2];
 
   gdcmHeader *f1 = new gdcmHeader( header );
   gdcmFile   *f2 = new gdcmFile( f1 );
-       
+
   // If the following call is important, then the API sucks. Why is it
   // required to allocate PixelData when we are not using it !?
   void* PixelData = f2->GetImageData(); //EXTREMELY IMPORTANT