summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-01-04 09:13:57 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-01-04 09:13:57 +0000
commita2bfa25d7148ec7d6745ef080ec8a963a9f3392d (patch)
tree714048687184521bf5e05cc479bc45df86a62d47
parent1d8bd498cd94ce7dc378cd547256ce33ec66083f (diff)
downloadlasso-a2bfa25d7148ec7d6745ef080ec8a963a9f3392d.tar.gz
lasso-a2bfa25d7148ec7d6745ef080ec8a963a9f3392d.tar.xz
lasso-a2bfa25d7148ec7d6745ef080ec8a963a9f3392d.zip
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.
-rw-r--r--lasso/xml/misc_text_node.c2
-rw-r--r--lasso/xml/misc_text_node.h2
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);