mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 17:08:53 +02:00
Remove all uses of G_CONST_RETURN
Just use 'const'.
This commit is contained in:
@@ -920,7 +920,7 @@ g_io_channel_set_line_term (GIOChannel *channel,
|
||||
* Return value: The line termination string. This value
|
||||
* is owned by GLib and must not be freed.
|
||||
**/
|
||||
G_CONST_RETURN gchar*
|
||||
const gchar *
|
||||
g_io_channel_get_line_term (GIOChannel *channel,
|
||||
gint *length)
|
||||
{
|
||||
@@ -1458,7 +1458,7 @@ g_io_channel_set_encoding (GIOChannel *channel,
|
||||
* Return value: A string containing the encoding, this string is
|
||||
* owned by GLib and must not be freed.
|
||||
**/
|
||||
G_CONST_RETURN gchar*
|
||||
const gchar *
|
||||
g_io_channel_get_encoding (GIOChannel *channel)
|
||||
{
|
||||
g_return_val_if_fail (channel != NULL, NULL);
|
||||
|
Reference in New Issue
Block a user