X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestWriteSimple.cxx;h=51b3f4d9bfb2eec72b6894a36d8c492c39fbb665;hb=8b695d4a325b768e1bec82f41d74c49ebb906cc8;hp=74531f9b75147ce047f6c2228ec14ba0a18aaedb;hpb=6b91390e1086959c40c0ae9a37912877a6f14c36;p=gdcm.git diff --git a/Testing/TestWriteSimple.cxx b/Testing/TestWriteSimple.cxx index 74531f9b..51b3f4d9 100644 --- a/Testing/TestWriteSimple.cxx +++ b/Testing/TestWriteSimple.cxx @@ -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