mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
Const 'parser' arg to g_markup_parse_context_push
This is a vtable structure and very likely the user has allocated it in static storage and wants it to be const. Since we never modify it, no harm is done to us to have it const. Closes bug #629328.
This commit is contained in:
parent
124023b06d
commit
445f708b8f
@ -1967,7 +1967,7 @@ g_markup_parse_context_get_user_data (GMarkupParseContext *context)
|
|||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
g_markup_parse_context_push (GMarkupParseContext *context,
|
g_markup_parse_context_push (GMarkupParseContext *context,
|
||||||
GMarkupParser *parser,
|
const GMarkupParser *parser,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
GMarkupRecursionTracker *tracker;
|
GMarkupRecursionTracker *tracker;
|
||||||
|
@ -113,7 +113,7 @@ gboolean g_markup_parse_context_parse (GMarkupParseContext *context,
|
|||||||
gssize text_len,
|
gssize text_len,
|
||||||
GError **error);
|
GError **error);
|
||||||
void g_markup_parse_context_push (GMarkupParseContext *context,
|
void g_markup_parse_context_push (GMarkupParseContext *context,
|
||||||
GMarkupParser *parser,
|
const GMarkupParser *parser,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
gpointer g_markup_parse_context_pop (GMarkupParseContext *context);
|
gpointer g_markup_parse_context_pop (GMarkupParseContext *context);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user