[gegl] operations/core/nop: Remove a needless and wrong cast



commit 792125a50a22a634fc3e10171da211e04b01cbfa
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Feb 23 14:11:09 2016 +0100

    operations/core/nop: Remove a needless and wrong cast
    
    g_object_ref accepts a gpointer, not a GObject *, and since we have
    already cast it to a GeglBuffer there is not much to be had in the way
    of sanity checking either. We could have cast it to a gpointer, but it
    is idiomatic to not do so.

 operations/core/nop.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/operations/core/nop.c b/operations/core/nop.c
index 323f970..af18e93 100644
--- a/operations/core/nop.c
+++ b/operations/core/nop.c
@@ -61,7 +61,7 @@ gegl_nop_process (GeglOperation        *operation,
       return FALSE;
     }
 
-  gegl_operation_context_take_object (context, "output", g_object_ref (G_OBJECT (input)));
+  gegl_operation_context_take_object (context, "output", g_object_ref (input));
   return TRUE;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]