if ( !m_f->Read(buf, WXSIZEOF(buf)) )
return FALSE;
- m_f->SeekI(-WXSIZEOF(buf), wxFromCurrent);
+ m_f->SeekI(-(off_t)WXSIZEOF(buf), wxFromCurrent);
return (memcmp(buf, "FORM", 4) == 0) && (memcmp(buf+8, "ILBM", 4) == 0);
}
bool wxIFFHandler::DoCanRead(wxInputStream& stream)
{
- wxIFFDecoder *decod;
- bool ok;
-
- decod = new wxIFFDecoder(&stream);
- ok = decod->CanRead();
- delete decod;
+ wxIFFDecoder decod(&stream);
- return ok;
+ return decod.CanRead();
}
#endif // wxUSE_STREAMS