Skip to content

Commit

Permalink
operations/core/nop: Remove a needless and wrong cast
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
debarshiray committed Feb 23, 2016
1 parent 7080e5a commit 792125a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operations/core/nop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 792125a

Please sign in to comment.