X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FTestWriteSimple.cxx;h=0c03379cdca49e303c9f935e82eb8683490ace17;hb=8758f1c110cbbb2e71c71d6f722d36a144e02db9;hp=df717bf4299b69e10d65954d912cec968b9c9f0f;hpb=8fca7bc2830904113dbb5521c009775d964c5c98;p=gdcm.git diff --git a/Example/TestWriteSimple.cxx b/Example/TestWriteSimple.cxx index df717bf4..0c03379c 100644 --- a/Example/TestWriteSimple.cxx +++ b/Example/TestWriteSimple.cxx @@ -13,8 +13,8 @@ int main(int argc, char* argv[]) std::string header = argv[1]; const char *output = argv[2]; - gdcmHeader *f1 = new gdcmHeader( header ); - gdcmFile *f2 = new gdcmFile( f1 ); + gdcm::Header *f1 = new gdcm::Header( header ); + gdcm::File *f2 = new gdcm::File( f1 ); // If the following call is important, then the API sucks. Why is it // required to allocate PixelData when we are not using it !? @@ -24,7 +24,7 @@ int main(int argc, char* argv[]) int dataSize = f2->GetImageDataSize(); // unsigned char cast is necessary to be able to delete the buffer // since deleting a void* is not allowed in c++ - char *imageData = (char*)f2->GetImageData(); + uint8_t* imageData = (uint8_t*)f2->GetImageData(); f2->SetImageData( imageData, dataSize);