Qualify namespace

This commit is contained in:
Pavel Krajcevski 2015-01-26 15:11:35 -05:00
parent 43aa8266b6
commit 34f90c07a2
2 changed files with 5 additions and 3 deletions

View file

@ -62,6 +62,8 @@ class CompressedImage : public FasTC::Image<FasTC::Pixel> {
FasTC::ECompressionFormat m_Format;
uint8 *m_CompressedData;
typedef FasTC::Image<FasTC::Pixel> UncompressedImage;
public:
CompressedImage(const CompressedImage &);
CompressedImage &operator=(const CompressedImage &);

View file

@ -71,7 +71,7 @@ using FasTC::DecompressionJob;
using FasTC::ECompressionFormat;
CompressedImage::CompressedImage( const CompressedImage &other )
: Image(other)
: UncompressedImage(other)
, m_Format(other.m_Format)
, m_CompressedData(0)
{
@ -88,7 +88,7 @@ CompressedImage::CompressedImage(
const ECompressionFormat format,
const unsigned char *data
)
: FasTC::Image<>(width, height, reinterpret_cast<uint32 *>(NULL))
: UncompressedImage(width, height, reinterpret_cast<uint32 *>(NULL))
, m_Format(format)
, m_CompressedData(0)
{
@ -101,7 +101,7 @@ CompressedImage::CompressedImage(
}
CompressedImage &CompressedImage::operator=(const CompressedImage &other) {
Image::operator=(other);
UncompressedImage::operator=(other);
m_Format = other.m_Format;
if(other.m_CompressedData) {
uint32 cmpSz = GetCompressedSize();