mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
Use 'const' instead G_CONST_RETURN
This commit is contained in:
parent
1516be6f69
commit
ed9db7c3e5
@ -107,8 +107,8 @@ of #GObject so the same points apply, except that it has a "floating" state
|
||||
</para>
|
||||
|
||||
<para>
|
||||
For strings returned from functions, they will be declared "const" (using
|
||||
#G_CONST_RETURN) if they should not be freed. Non-const strings should be
|
||||
For strings returned from functions, they will be declared "const"
|
||||
if they should not be freed. Non-const strings should be
|
||||
freed with g_free(). Arrays follow the same rule. (If you find an exception
|
||||
to the rules, please report a bug to <ulink
|
||||
url="http://bugzilla.gnome.org">http://bugzilla.gnome.org</ulink>.)
|
||||
|
@ -193,7 +193,7 @@ _gdk_windowing_set_default_display (GdkDisplay *display)
|
||||
_gdk_display = GDK_DISPLAY_DFB (display);
|
||||
}
|
||||
|
||||
G_CONST_RETURN gchar *
|
||||
const gchar *
|
||||
gdk_display_get_name (GdkDisplay *display)
|
||||
{
|
||||
return gdk_get_display_arg_name ();
|
||||
|
Loading…
Reference in New Issue
Block a user