From 290fdc52a30164a46f349dd6b7d2a94b45bdc15b Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 30 Jul 2012 20:12:24 +0200 Subject: fixed libxml2 API usage by appropriately using 'const' and 'xmlChar*' --- src/lxml/proxy.pxi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lxml/proxy.pxi') diff --git a/src/lxml/proxy.pxi b/src/lxml/proxy.pxi index ea6fe4c6..8843a0e8 100644 --- a/src/lxml/proxy.pxi +++ b/src/lxml/proxy.pxi @@ -460,7 +460,7 @@ cdef inline void fixThreadDictNamesForAttributes(tree.xmlAttr* c_attr, cdef inline void fixThreadDictNameForNode(xmlNode* c_node, tree.xmlDict* c_src_dict, tree.xmlDict* c_dict) nogil: - cdef char* c_name = c_node.name + cdef const_xmlChar* c_name = c_node.name if c_name is not NULL and \ c_node.type != tree.XML_TEXT_NODE and \ c_node.type != tree.XML_COMMENT_NODE: @@ -474,10 +474,10 @@ cdef inline void fixThreadDictContentForNode(xmlNode* c_node, tree.xmlDict* c_src_dict, tree.xmlDict* c_dict) nogil: if c_node.content is not NULL and \ - c_node.content is not &c_node.properties: + c_node.content is not &c_node.properties: if tree.xmlDictOwns(c_src_dict, c_node.content): # result can be NULL on memory error, but we don't handle that here - c_node.content = tree.xmlDictLookup(c_dict, c_node.content, -1) + c_node.content = tree.xmlDictLookup(c_dict, c_node.content, -1) cdef inline void fixThreadDictNsForNode(xmlNode* c_node, tree.xmlDict* c_src_dict, -- cgit v1.2.1