Remove all uses of G_CONST_RETURN

Just use 'const'.
This commit is contained in:
Ryan Lortie
2011-03-12 21:50:45 -05:00
parent 61b0e1c8d4
commit 36741245cc
35 changed files with 122 additions and 122 deletions

View File

@@ -598,7 +598,7 @@ g_module_make_resident (GModule *module)
module->is_resident = TRUE;
}
G_CONST_RETURN gchar*
const gchar *
g_module_error (void)
{
return g_static_private_get (&module_error_private);
@@ -648,7 +648,7 @@ g_module_symbol (GModule *module,
return !module_error;
}
G_CONST_RETURN gchar*
const gchar *
g_module_name (GModule *module)
{
g_return_val_if_fail (module != NULL, NULL);
@@ -663,7 +663,7 @@ g_module_name (GModule *module)
#undef g_module_name
G_CONST_RETURN gchar*
const gchar *
g_module_name (GModule *module)
{
g_return_val_if_fail (module != NULL, NULL);

View File

@@ -71,7 +71,7 @@ gboolean g_module_close (GModule *module);
void g_module_make_resident (GModule *module);
/* query the last module error as a string */
G_CONST_RETURN gchar* g_module_error (void);
const gchar * g_module_error (void);
/* retrieve a symbol pointer from `module', returns TRUE on success */
gboolean g_module_symbol (GModule *module,
@@ -79,7 +79,7 @@ gboolean g_module_symbol (GModule *module,
gpointer *symbol);
/* retrieve the file name from an existing module */
G_CONST_RETURN gchar* g_module_name (GModule *module);
const gchar * g_module_name (GModule *module);
/* Build the actual file name containing a module. `directory' is the
* directory where the module file is supposed to be, or NULL or empty