GIFTranslator: gifSave not gitSave, habit

Also move comment before function. No functional change intended.
This commit is contained in:
John Scipione 2014-03-04 01:47:43 -05:00
parent f4b507313b
commit 81abd9ed03

View File

@ -187,12 +187,13 @@ GetBitmap(BPositionIO* in, BBitmap** out)
} }
/* Required identify function - may need to read entire header, not sure
*/
status_t status_t
GIFTranslator::DerivedIdentify(BPositionIO* inSource, GIFTranslator::DerivedIdentify(BPositionIO* inSource,
const translation_format* inFormat, BMessage* ioExtension, const translation_format* inFormat, BMessage* ioExtension,
translator_info* outInfo, uint32 outType) translator_info* outInfo, uint32 outType)
{ {
// Required identify function - may need to read entire header, not sure
const char* debug_text = getenv("GIF_TRANSLATOR_DEBUG"); const char* debug_text = getenv("GIF_TRANSLATOR_DEBUG");
if (debug_text != NULL && atoi(debug_text) != 0) if (debug_text != NULL && atoi(debug_text) != 0)
debug = true; debug = true;
@ -265,13 +266,13 @@ GIFTranslator::DerivedTranslate(BPositionIO* inSource,
if (err != B_OK) if (err != B_OK)
return err; return err;
GIFSave* gitSave = new GIFSave(bitmap, outDestination, fSettings); GIFSave* gifSave = new GIFSave(bitmap, outDestination, fSettings);
if (gitSave->fatalerror) { if (gifSave->fatalerror) {
delete gitSave; delete gifSave;
delete bitmap; delete bitmap;
return B_NO_MEMORY; return B_NO_MEMORY;
} }
delete gitSave; delete gifSave;
delete bitmap; delete bitmap;
} else { } else {
// GIF to BBitmap // GIF to BBitmap