diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2012-07-30 20:12:24 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2012-07-30 20:12:24 +0200 |
commit | 290fdc52a30164a46f349dd6b7d2a94b45bdc15b (patch) | |
tree | c7e9095e04bf2fc260ca900d1afc5fe49f1a1d58 /src/lxml/proxy.pxi | |
parent | 5658b26a7c7d9baf7b072a1de888e39d7b531eff (diff) | |
download | python-lxml-290fdc52a30164a46f349dd6b7d2a94b45bdc15b.tar.gz |
fixed libxml2 API usage by appropriately using 'const' and 'xmlChar*'
Diffstat (limited to 'src/lxml/proxy.pxi')
-rw-r--r-- | src/lxml/proxy.pxi | 6 |
1 files changed, 3 insertions, 3 deletions
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 <char*>&c_node.properties: + c_node.content is not <xmlChar*>&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 = <xmlChar*>tree.xmlDictLookup(c_dict, c_node.content, -1) cdef inline void fixThreadDictNsForNode(xmlNode* c_node, tree.xmlDict* c_src_dict, |