getline(infile, parastring);
}
- if (inbuffer != NULL)
- delete inbuffer;
-
- inbuffer = new boost::iostreams::filtering_istreambuf;
+ inbuffer = unique_ptr<boost::iostreams::filtering_istreambuf>(new boost::iostreams::filtering_istreambuf);
inbuffer->push( boost::iostreams::bzip2_decompressor() );
inbuffer->push(infile);
return 0;
}
-datread::~datread ()
-{
- if (inbuffer != NULL)
- delete inbuffer;
-}
-
int datread::readDataToMem (char *tmpData, long unsigned int dataSize)
{
int readturn = -1;