xmllite: Don't use StringValue_LocalName for element nodes.
It's not used anyway. Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4553871614
commit
004d615f83
|
@ -2313,7 +2313,6 @@ static HRESULT reader_parse_element(xmlreader *reader)
|
|||
reader->nodetype = XmlNodeType_Element;
|
||||
reader->resumestate = XmlReadResumeState_Initial;
|
||||
reader_set_strvalue(reader, StringValue_Prefix, &prefix);
|
||||
reader_set_strvalue(reader, StringValue_LocalName, &local);
|
||||
reader_set_strvalue(reader, StringValue_QualifiedName, &qname);
|
||||
reader_set_strvalue(reader, StringValue_Value, &strval_empty);
|
||||
break;
|
||||
|
@ -2993,14 +2992,12 @@ static HRESULT WINAPI xmlreader_MoveToElement(IXmlReader* iface)
|
|||
/* FIXME: support other node types with 'attributes' like DTD */
|
||||
if (This->is_empty_element) {
|
||||
reader_set_strvalue(This, StringValue_Prefix, &This->empty_element.prefix);
|
||||
reader_set_strvalue(This, StringValue_LocalName, &This->empty_element.localname);
|
||||
reader_set_strvalue(This, StringValue_QualifiedName, &This->empty_element.qname);
|
||||
}
|
||||
else {
|
||||
struct element *element = LIST_ENTRY(list_head(&This->elements), struct element, entry);
|
||||
if (element) {
|
||||
reader_set_strvalue(This, StringValue_Prefix, &element->prefix);
|
||||
reader_set_strvalue(This, StringValue_LocalName, &element->localname);
|
||||
reader_set_strvalue(This, StringValue_QualifiedName, &element->qname);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue