[evolution/webkit-composer] Replace C cast with macro.
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit-composer] Replace C cast with macro.
- Date: Tue, 24 Sep 2013 14:50:18 +0000 (UTC)
commit 3af6547b67364ad4b1271001aee5af2e5e4d4b9a
Author: Tomas Popela <tpopela redhat com>
Date: Tue Sep 24 16:49:56 2013 +0200
Replace C cast with macro.
e-util/e-editor-utils.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/e-util/e-editor-utils.c b/e-util/e-editor-utils.c
index d4f6308..43b8c57 100644
--- a/e-util/e-editor-utils.c
+++ b/e-util/e-editor-utils.c
@@ -55,13 +55,13 @@ e_editor_dom_node_find_parent_element (WebKitDOMNode *node,
(strlen (node_tagname) == taglen) &&
(g_ascii_strncasecmp (node_tagname, tagname, taglen) == 0)) {
g_free (node_tagname);
- return (WebKitDOMElement *) node;
+ return WEBKIT_DOM_ELEMENT (node);
}
g_free (node_tagname);
}
- node = (WebKitDOMNode *) webkit_dom_node_get_parent_element (node);
+ node = WEBKIT_DOM_NODE (webkit_dom_node_get_parent_element (node));
}
return NULL;
@@ -97,7 +97,7 @@ e_editor_dom_node_find_child_element (WebKitDOMNode *node,
(strlen (node_tagname) == taglen) &&
(g_ascii_strncasecmp (node_tagname, tagname, taglen) == 0)) {
g_free (node_tagname);
- return (WebKitDOMElement *) node;
+ return WEBKIT_DOM_ELEMENT (node);
}
g_free (node_tagname);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]