[grilo] core: Get rid of 'const' in return value



commit 85a2b88db709bd5073dd2f343bd09cb300b8c2c3
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Mon Jul 19 13:58:45 2010 +0200

    core: Get rid of 'const' in return value
    
    const modifier in return values is usually used with strings, not other types.
    
    Get rid of it.

 src/grl-plugin-registry.c |    4 ++--
 src/grl-plugin-registry.h |    8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/grl-plugin-registry.c b/src/grl-plugin-registry.c
index 08b50c7..8278f71 100644
--- a/src/grl-plugin-registry.c
+++ b/src/grl-plugin-registry.c
@@ -651,7 +651,7 @@ grl_plugin_registry_unload (GrlPluginRegistry *registry,
   }
 }
 
-const GrlKeyID
+GrlKeyID
 grl_plugin_registry_register_metadata_key (GrlPluginRegistry *registry,
                                            GParamSpec *key)
 {
@@ -683,7 +683,7 @@ grl_plugin_registry_register_metadata_key (GrlPluginRegistry *registry,
  *
  * Returns: (transfer none): The metadata key, or @NULL if not found
  */
-const GrlKeyID
+GrlKeyID
 grl_plugin_registry_lookup_metadata_key (GrlPluginRegistry *registry,
                                          const gchar *key_name)
 {
diff --git a/src/grl-plugin-registry.h b/src/grl-plugin-registry.h
index 01bd579..964d370 100644
--- a/src/grl-plugin-registry.h
+++ b/src/grl-plugin-registry.h
@@ -215,11 +215,11 @@ GrlMediaPlugin **grl_plugin_registry_get_sources_by_operations (GrlPluginRegistr
                                                                 GrlSupportedOps ops,
                                                                 gboolean ranked);
 
-const GrlKeyID grl_plugin_registry_register_metadata_key (GrlPluginRegistry *registry,
-                                                          GParamSpec *key);
+GrlKeyID grl_plugin_registry_register_metadata_key (GrlPluginRegistry *registry,
+                                                    GParamSpec *key);
 
-const GrlKeyID grl_plugin_registry_lookup_metadata_key (GrlPluginRegistry *registry,
-                                                        const gchar *key_name);
+GrlKeyID grl_plugin_registry_lookup_metadata_key (GrlPluginRegistry *registry,
+                                                  const gchar *key_name);
 
 GList *grl_plugin_registry_get_metadata_keys (GrlPluginRegistry *registry);
 



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