[haiku-commits] haiku: hrev46967 - src/add-ons/translators/gif

  • From: jscipione@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 4 Mar 2014 07:50:01 +0100 (CET)

hrev46967 adds 1 changeset to branch 'master'
old head: f4b507313b823d572033099d6429635b4eb914d1
new head: 81abd9ed030560a40d8ca89af871816b3eae63e9
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=81abd9e+%5Ef4b5073

----------------------------------------------------------------------------

81abd9e: GIFTranslator: gifSave not gitSave, habit
  
  Also move comment before function. No functional change intended.

                                     [ John Scipione <jscipione@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev46967
Commit:      81abd9ed030560a40d8ca89af871816b3eae63e9
URL:         http://cgit.haiku-os.org/haiku/commit/?id=81abd9e
Author:      John Scipione <jscipione@xxxxxxxxx>
Date:        Tue Mar  4 06:47:43 2014 UTC

----------------------------------------------------------------------------

1 file changed, 6 insertions(+), 5 deletions(-)
src/add-ons/translators/gif/GIFTranslator.cpp | 11 ++++++-----

----------------------------------------------------------------------------

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


Other related posts: