[gegl] property-keys: gegl_param_spec_set_property_key; remove return type



commit 648933d5618602101cce4398fea215e6ff2d50e2
Author: Øyvind Kolås <pippin gimp org>
Date:   Mon May 19 14:26:16 2014 +0200

    property-keys: gegl_param_spec_set_property_key; remove return type

 gegl/operation/gegl-operation-property-keys.c |    6 ++----
 gegl/operation/gegl-operation-property-keys.h |    2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/gegl/operation/gegl-operation-property-keys.c b/gegl/operation/gegl-operation-property-keys.c
index 62a042b..63bfe76 100644
--- a/gegl/operation/gegl-operation-property-keys.c
+++ b/gegl/operation/gegl-operation-property-keys.c
@@ -56,16 +56,14 @@ gegl_param_spec_get_property_key (GParamSpec  *pspec,
   return NULL;
 }
 
-const gchar *
+void
 gegl_param_spec_set_property_key (GParamSpec  *pspec,
                                   const gchar *key_name,
                                   const gchar *value)
 {
   GHashTable *ht;
   ht = gegl_param_spec_get_property_key_ht (pspec, TRUE);
-  if (ht)
-    g_hash_table_insert (ht, g_strdup (key_name), g_strdup (value));
-  return NULL;
+  g_hash_table_insert (ht, g_strdup (key_name), g_strdup (value));
 }
 
 static GHashTable *
diff --git a/gegl/operation/gegl-operation-property-keys.h b/gegl/operation/gegl-operation-property-keys.h
index dc8432e..70f9644 100644
--- a/gegl/operation/gegl-operation-property-keys.h
+++ b/gegl/operation/gegl-operation-property-keys.h
@@ -24,7 +24,7 @@
 const gchar *gegl_param_spec_get_property_key (GParamSpec  *pspec,
                                                const gchar *key_name);
 
-const gchar *gegl_param_spec_set_property_key (GParamSpec  *pspec,
+void         gegl_param_spec_set_property_key (GParamSpec  *pspec,
                                                const gchar *key_name,
                                                const gchar *value);
 


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