diff options
author | Damien Laniel <dlaniel@entrouvert.com> | 2007-06-08 15:16:22 +0000 |
---|---|---|
committer | Damien Laniel <dlaniel@entrouvert.com> | 2007-06-08 15:16:22 +0000 |
commit | 6886b79b93f1d31b3dc932e6693ea270f4c12d17 (patch) | |
tree | 4eb4d5d5a07bc58006e688d353e9478f41ea5703 /lasso/xml/ws/wsa_attributed_uri.c | |
parent | bb00c74ce3d6f2a28a73df0520b63a0da3c4cc5a (diff) | |
download | lasso-6886b79b93f1d31b3dc932e6693ea270f4c12d17.tar.gz lasso-6886b79b93f1d31b3dc932e6693ea270f4c12d17.tar.xz lasso-6886b79b93f1d31b3dc932e6693ea270f4c12d17.zip |
various error checks, coding style and refactoring
Diffstat (limited to 'lasso/xml/ws/wsa_attributed_uri.c')
-rw-r--r-- | lasso/xml/ws/wsa_attributed_uri.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lasso/xml/ws/wsa_attributed_uri.c b/lasso/xml/ws/wsa_attributed_uri.c index 3ddf53e6..7bdd2d41 100644 --- a/lasso/xml/ws/wsa_attributed_uri.c +++ b/lasso/xml/ws/wsa_attributed_uri.c @@ -105,7 +105,7 @@ lasso_wsa_attributed_uri_get_type() * * Return value: a newly created #LassoWsAddrAttributedURI object **/ -LassoNode* +LassoWsAddrAttributedURI* lasso_wsa_attributed_uri_new() { return g_object_new(LASSO_TYPE_WSA_ATTRIBUTED_URI, NULL); @@ -121,11 +121,12 @@ lasso_wsa_attributed_uri_new() * * Return value: a newly created #LassoWsAddrAttributedURI object **/ -LassoNode* +LassoWsAddrAttributedURI* lasso_wsa_attributed_uri_new_with_string(char *content) { - LassoWsAddrAttributedURI *object; - object = g_object_new(LASSO_TYPE_WSA_ATTRIBUTED_URI, NULL); + LassoWsAddrAttributedURI *object = g_object_new(LASSO_TYPE_WSA_ATTRIBUTED_URI, NULL); + object->content = g_strdup(content); - return LASSO_NODE(object); + + return object; } |