[glib] Const 'parser' arg to g_markup_parse_context_push
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Const 'parser' arg to g_markup_parse_context_push
- Date: Mon, 13 Sep 2010 16:14:17 +0000 (UTC)
commit 445f708b8ff93b96ff1e440fe9c26bf8b19ff706
Author: Ryan Lortie <desrt desrt ca>
Date: Mon Sep 13 12:07:51 2010 -0400
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.
glib/gmarkup.c | 2 +-
glib/gmarkup.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/gmarkup.c b/glib/gmarkup.c
index e71cc98..b9e8c31 100644
--- a/glib/gmarkup.c
+++ b/glib/gmarkup.c
@@ -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;
diff --git a/glib/gmarkup.h b/glib/gmarkup.h
index d5fb158..7bfc086 100644
--- a/glib/gmarkup.h
+++ b/glib/gmarkup.h
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]