Const 'parser' arg to g_markup_parse_context_push
authorRyan Lortie <desrt@desrt.ca>
Mon, 13 Sep 2010 16:07:51 +0000 (12:07 -0400)
committerRyan Lortie <desrt@desrt.ca>
Mon, 13 Sep 2010 16:14:08 +0000 (12:14 -0400)
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.

glib/gmarkup.c
glib/gmarkup.h

index e71cc98..b9e8c31 100644 (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;
index d5fb158..7bfc086 100644 (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);