diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-01-04 09:14:38 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-01-04 09:14:38 +0000 |
| commit | dee4de185878c8350981008f8a9b65b4c5ec42d2 (patch) | |
| tree | 1a252eb08123f8516b40df957ce666393e6d8ceb | |
| parent | 27af878c2bbeae1aa2907a4dbd86f133df29f19f (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.c | 10 | ||||
| -rw-r--r-- | lasso/xml/dst_modify.h | 2 |
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 } |
