Fixed Coverity issue.

CID 11692: Uninitialized scalar field (UNINIT_CTOR)
Non-static class member _allocationMode is not initialized in this constructor nor in any functions that it calls.
This commit is contained in:
Robert Osfield 2011-05-24 10:18:47 +00:00
parent 65d2ddd325
commit e7ee4c1f79

View File

@ -76,6 +76,7 @@ Image::Image(const Image& image,const CopyOp& copyop):
_dataType(image._dataType),
_packing(image._packing),
_pixelAspectRatio(image._pixelAspectRatio),
_allocationMode(USE_NEW_DELETE),
_data(0L),
_mipmapData(image._mipmapData)
{
@ -85,7 +86,6 @@ Image::Image(const Image& image,const CopyOp& copyop):
setData(new unsigned char [size],USE_NEW_DELETE);
memcpy(_data,image._data,size);
}
}
Image::~Image()