mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 05:43:28 +02:00
Remove all uses of G_CONST_RETURN
Just use 'const'.
This commit is contained in:
@@ -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);
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user