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:
Ryan Lortie 2010-09-13 12:07:51 -04:00
parent 124023b06d
commit 445f708b8f
2 changed files with 2 additions and 2 deletions

View File

@ -1967,7 +1967,7 @@ g_markup_parse_context_get_user_data (GMarkupParseContext *context)
**/
void
g_markup_parse_context_push (GMarkupParseContext *context,
GMarkupParser *parser,
const GMarkupParser *parser,
gpointer user_data)
{
GMarkupRecursionTracker *tracker;

View File

@ -113,7 +113,7 @@ gboolean g_markup_parse_context_parse (GMarkupParseContext *context,
gssize text_len,
GError **error);
void g_markup_parse_context_push (GMarkupParseContext *context,
GMarkupParser *parser,
const GMarkupParser *parser,
gpointer user_data);
gpointer g_markup_parse_context_pop (GMarkupParseContext *context);