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 | f57213206237c62ced97638a665f10c986c64137 (patch) | |
tree | 7dc3d87784439db9ada9ea0f6b04210be26f9825 /include/dom/core/attr.h | |
parent | 896be5bbd25299833957e51473656ffcf7b61318 (diff) | |
download | libdom-f57213206237c62ced97638a665f10c986c64137.tar.gz libdom-f57213206237c62ced97638a665f10c986c64137.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) |