From a2bfa25d7148ec7d6745ef080ec8a963a9f3392d Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 4 Jan 2010 09:13:57 +0000 Subject: Core XML: make first argument of lasso_misc_text_node_new_with_string const * lasso/xml/misc_text_node.h lasso/xml/misc_text_node.c: change signature of lasso_misc_text_node_new_with_string, string argument is const. --- lasso/xml/misc_text_node.c | 2 +- lasso/xml/misc_text_node.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lasso/xml/misc_text_node.c b/lasso/xml/misc_text_node.c index 7de29832..2af6b555 100644 --- a/lasso/xml/misc_text_node.c +++ b/lasso/xml/misc_text_node.c @@ -226,7 +226,7 @@ lasso_misc_text_node_new() * Return value: a newly created #LassoMiscTextNode object **/ LassoMiscTextNode* -lasso_misc_text_node_new_with_string(char *content) +lasso_misc_text_node_new_with_string(const char *content) { LassoMiscTextNode *object; object = g_object_new(LASSO_TYPE_MISC_TEXT_NODE, NULL); diff --git a/lasso/xml/misc_text_node.h b/lasso/xml/misc_text_node.h index 23f7d211..cafedb43 100644 --- a/lasso/xml/misc_text_node.h +++ b/lasso/xml/misc_text_node.h @@ -77,7 +77,7 @@ LASSO_EXPORT GType lasso_misc_text_node_get_type(void); LASSO_EXPORT LassoNode* lasso_misc_text_node_new(void); -LASSO_EXPORT LassoMiscTextNode* lasso_misc_text_node_new_with_string(char *content); +LASSO_EXPORT LassoMiscTextNode* lasso_misc_text_node_new_with_string(const char *content); LASSO_EXPORT LassoMiscTextNode* lasso_misc_text_node_new_with_xml_node(xmlNode *xml_node); -- cgit