diff options
author | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2012-03-28 20:41:01 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2012-03-28 20:41:01 +0000 |
commit | e0e0659bddc7530a97e4d642a57b367b62b076dd (patch) | |
tree | 7dc3d87784439db9ada9ea0f6b04210be26f9825 /include/dom/core/attr.h | |
parent | 7ef040ae1eb38165d94e790b5d12d9ee3fe56b09 (diff) | |
download | libdom-e0e0659bddc7530a97e4d642a57b367b62b076dd.tar.gz libdom-e0e0659bddc7530a97e4d642a57b367b62b076dd.tar.bz2 |
Remove casts related to dom_string in API macros because they were hiding errors such as the one fixed in r13764
svn path=/trunk/libdom/; revision=13765
Diffstat (limited to 'include/dom/core/attr.h')
-rw-r--r-- | include/dom/core/attr.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/include/dom/core/attr.h b/include/dom/core/attr.h index 10d4a79..69612f7 100644 --- a/include/dom/core/attr.h +++ b/include/dom/core/attr.h @@ -56,8 +56,7 @@ static inline dom_exception dom_attr_get_name(struct dom_attr *attr, return ((dom_attr_vtable *) ((dom_node *) attr)->vtable)-> dom_attr_get_name(attr, result); } -#define dom_attr_get_name(a, r) dom_attr_get_name((struct dom_attr *) (a), \ - (dom_string **) (r)) +#define dom_attr_get_name(a, r) dom_attr_get_name((struct dom_attr *) (a), (r)) static inline dom_exception dom_attr_get_specified(struct dom_attr *attr, bool *result) @@ -74,8 +73,7 @@ static inline dom_exception dom_attr_get_value(struct dom_attr *attr, return ((dom_attr_vtable *) ((dom_node *) attr)->vtable)-> dom_attr_get_value(attr, result); } -#define dom_attr_get_value(a, r) dom_attr_get_value((struct dom_attr *) (a), \ - (dom_string **) (r)) +#define dom_attr_get_value(a, r) dom_attr_get_value((struct dom_attr *) (a), (r)) static inline dom_exception dom_attr_set_value(struct dom_attr *attr, dom_string *value) @@ -83,8 +81,7 @@ static inline dom_exception dom_attr_set_value(struct dom_attr *attr, return ((dom_attr_vtable *) ((dom_node *) attr)->vtable)-> dom_attr_set_value(attr, value); } -#define dom_attr_set_value(a, v) dom_attr_set_value((struct dom_attr *) (a), \ - (dom_string *) (v)) +#define dom_attr_set_value(a, v) dom_attr_set_value((struct dom_attr *) (a), (v)) static inline dom_exception dom_attr_get_owner_element(struct dom_attr *attr, struct dom_element **result) |