X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Testing%2FTestReadWriteReadCompare.cxx;h=1559a6d11028ecfa457b7e688d79994817e7c421;hb=bac2910466f502dec4c1842527aa81a8f83f04b8;hp=23dc39f981b423be96b5da2dcc2c720b97612265;hpb=6dd4be4b5b1a72be99e6a78be4970950bea0fed8;p=gdcm.git diff --git a/Testing/TestReadWriteReadCompare.cxx b/Testing/TestReadWriteReadCompare.cxx index 23dc39f9..1559a6d1 100644 --- a/Testing/TestReadWriteReadCompare.cxx +++ b/Testing/TestReadWriteReadCompare.cxx @@ -1,3 +1,20 @@ +/*========================================================================= + + Program: gdcm + Module: $RCSfile: TestReadWriteReadCompare.cxx,v $ + Language: C++ + Date: $Date: 2004/11/16 04:28:20 $ + Version: $Revision: 1.13 $ + + Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de + l'Image). All rights reserved. See Doc/License.txt or + http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ #include "gdcmHeader.h" #include "gdcmFile.h" @@ -65,7 +82,7 @@ int CompareInternal(std::string const & filename, std::string const & output) std::cout << "3..."; // For the next step: int dataSizeWritten = reread->GetImageDataSize(); - void* imageDataWritten = reread->GetImageData(); + uint8_t* imageDataWritten = reread->GetImageData(); //////////////// Step 4: @@ -74,8 +91,6 @@ int CompareInternal(std::string const & filename, std::string const & output) std::cout << std::endl << " Pixel areas lengths differ: " << dataSize << " # " << dataSizeWritten << std::endl; - delete (char*)imageData; - delete (char*)imageDataWritten; delete header; delete file; delete reread; @@ -87,8 +102,6 @@ int CompareInternal(std::string const & filename, std::string const & output) (void)res; std::cout << std::endl << " Pixel differ (as expanded in memory)." << std::endl; - delete (char*)imageData; - delete (char*)imageDataWritten; delete header; delete file; delete reread; @@ -97,8 +110,6 @@ int CompareInternal(std::string const & filename, std::string const & output) std::cout << "4...OK." << std::endl ; //////////////// Clean up: - delete (char*)imageData; - delete (char*)imageDataWritten; delete header; delete file; delete reread;