mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 16:06:16 +01:00
gsource: Make GSource->source_funcs const
This is the vtable pointer for the source which is usually held in static storage. For our internal sources it points at a vtable which the user should really never be modifying. Mark it const. https://bugzilla.gnome.org/show_bug.cgi?id=686853
This commit is contained in:
parent
e1bee17e94
commit
ed8ec635eb
@ -156,7 +156,7 @@ struct _GSource
|
|||||||
gpointer callback_data;
|
gpointer callback_data;
|
||||||
GSourceCallbackFuncs *callback_funcs;
|
GSourceCallbackFuncs *callback_funcs;
|
||||||
|
|
||||||
GSourceFuncs *source_funcs;
|
const GSourceFuncs *source_funcs;
|
||||||
guint ref_count;
|
guint ref_count;
|
||||||
|
|
||||||
GMainContext *context;
|
GMainContext *context;
|
||||||
|
Loading…
Reference in New Issue
Block a user