[evolution/wip/webkit-composer: 243/262] Replace C cast with macro.



commit 947285396bbfa8cfba2697daccde8632f5a1a9cd
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]