[gegl] operations: fix compiler warnings in gegl:load



commit fedd7e7d3f566583a1162f795dcc67829eb7df6d
Author: Michael Natterer <mitch gimp org>
Date:   Sun Jun 7 00:48:51 2015 +0200

    operations: fix compiler warnings in gegl:load

 operations/common/load.c |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/operations/common/load.c b/operations/common/load.c
index 6cc46e3..06060d5 100644
--- a/operations/common/load.c
+++ b/operations/common/load.c
@@ -182,13 +182,16 @@ my_set_property (GObject      *gobject,
   GeglOp         *self      = GEGL_OP (operation);
   GeglProperties *o         = GEGL_PROPERTIES (operation);
 
-  const gchar *old_path = g_strdup (o->path);
-  const gchar *old_uri = g_strdup (o->uri);
+  gchar *old_path = g_strdup (o->path);
+  gchar *old_uri = g_strdup (o->uri);
+
+  gboolean props_changed;
 
   /* The set_property provided by the chant system does the
-   * storing and reffing/unreffing of the input properties */
-  set_property(gobject, property_id, value, pspec);
-  const gboolean props_changed = g_strcmp0 (o->path, old_path) || g_strcmp0 (o->uri, old_uri);
+   * storing and reffing/unreffing of the input properties
+   */
+  set_property (gobject, property_id, value, pspec);
+  props_changed = g_strcmp0 (o->path, old_path) || g_strcmp0 (o->uri, old_uri);
 
   if (self->load && props_changed)
     do_setup (operation, o->path, o->uri);


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