summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Clapies <nclapies@entrouvert.com>2004-12-10 17:10:08 +0000
committerNicolas Clapies <nclapies@entrouvert.com>2004-12-10 17:10:08 +0000
commit71bc47a8d824da40464b0b414d121281f22bb643 (patch)
tree6999c4fb3f8af66e6f1df1df8e6fe691546f0c0f
parent021f683d2e1b24ad404c44c65a036967a5e088f1 (diff)
downloadlasso-71bc47a8d824da40464b0b414d121281f22bb643.tar.gz
lasso-71bc47a8d824da40464b0b414d121281f22bb643.tar.xz
lasso-71bc47a8d824da40464b0b414d121281f22bb643.zip
Removed params of constructor : id and itemIDRef are not required attributes.
-rw-r--r--lasso/xml/dst_data.c9
-rw-r--r--lasso/xml/dst_data.h3
2 files changed, 2 insertions, 10 deletions
diff --git a/lasso/xml/dst_data.c b/lasso/xml/dst_data.c
index 4a67b910..6015bca4 100644
--- a/lasso/xml/dst_data.c
+++ b/lasso/xml/dst_data.c
@@ -108,19 +108,12 @@ lasso_dst_data_get_type()
}
LassoDstData*
-lasso_dst_data_new(const gchar *id,
- const gchar *itemIDRef)
+lasso_dst_data_new()
{
LassoDstData *data;
- g_return_val_if_fail(id != NULL, NULL);
- g_return_val_if_fail(itemIDRef != NULL, NULL);
-
data = g_object_new(LASSO_TYPE_DST_DATA, NULL);
- data->id = g_strdup(id);
- data->itemIDRef = g_strdup(itemIDRef);
-
return data;
}
diff --git a/lasso/xml/dst_data.h b/lasso/xml/dst_data.h
index d0fe8d86..5cd6fdd3 100644
--- a/lasso/xml/dst_data.h
+++ b/lasso/xml/dst_data.h
@@ -58,8 +58,7 @@ struct _LassoDstDataClass {
};
LASSO_EXPORT GType lasso_dst_data_get_type(void);
-LASSO_EXPORT LassoDstData* lasso_dst_data_new(const gchar *id,
- const gchar *itemIDRef);
+LASSO_EXPORT LassoDstData* lasso_dst_data_new(void);
#ifdef __cplusplus
}