summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-01-04 09:14:38 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-01-04 09:14:38 +0000
commitdee4de185878c8350981008f8a9b65b4c5ec42d2 (patch)
tree1a252eb08123f8516b40df957ce666393e6d8ceb
parent27af878c2bbeae1aa2907a4dbd86f133df29f19f (diff)
ID-WSF XML: in dst_modify.{c,h}, remove extra argument to the constructor of LassoDstModify
* lasso/xml/dst_modify.c: * lasso/xml/dst_modify.h: remove parameters of the default constructor.
-rw-r--r--lasso/xml/dst_modify.c10
-rw-r--r--lasso/xml/dst_modify.h2
2 files changed, 2 insertions, 10 deletions
diff --git a/lasso/xml/dst_modify.c b/lasso/xml/dst_modify.c
index 84ac5128..3c30277b 100644
--- a/lasso/xml/dst_modify.c
+++ b/lasso/xml/dst_modify.c
@@ -173,20 +173,12 @@ lasso_dst_modify_get_type()
}
LassoDstModify*
-lasso_dst_modify_new(LassoDstModification *modification)
+lasso_dst_modify_new()
{
LassoDstModify *modify;
- /* Force a warning */
- LassoDstModification *_modification = LASSO_DST_MODIFICATION(modification);
-
- g_return_val_if_fail(LASSO_IS_DST_MODIFICATION(modification) == TRUE, NULL);
modify = g_object_new(LASSO_TYPE_DST_MODIFY, NULL);
- if (LASSO_IS_DST_MODIFICATION(_modification)) {
- modify->Modification = g_list_append(modify->Modification, _modification);
- }
-
return modify;
}
diff --git a/lasso/xml/dst_modify.h b/lasso/xml/dst_modify.h
index 2089d262..b20dab71 100644
--- a/lasso/xml/dst_modify.h
+++ b/lasso/xml/dst_modify.h
@@ -70,7 +70,7 @@ struct _LassoDstModifyClass {
LASSO_EXPORT GType lasso_dst_modify_get_type(void);
-LASSO_EXPORT LassoDstModify* lasso_dst_modify_new(LassoDstModification *modification);
+LASSO_EXPORT LassoDstModify* lasso_dst_modify_new();
#ifdef __cplusplus
}