Commit 004d615f authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

xmllite: Don't use StringValue_LocalName for element nodes.

It's not used anyway. Signed-off-by: 's avatarJacek Caban <jacek@codeweavers.com> Signed-off-by: 's avatarNikolay Sivov <nsivov@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 45538716
...@@ -2313,7 +2313,6 @@ static HRESULT reader_parse_element(xmlreader *reader) ...@@ -2313,7 +2313,6 @@ static HRESULT reader_parse_element(xmlreader *reader)
reader->nodetype = XmlNodeType_Element; reader->nodetype = XmlNodeType_Element;
reader->resumestate = XmlReadResumeState_Initial; reader->resumestate = XmlReadResumeState_Initial;
reader_set_strvalue(reader, StringValue_Prefix, &prefix); 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_QualifiedName, &qname);
reader_set_strvalue(reader, StringValue_Value, &strval_empty); reader_set_strvalue(reader, StringValue_Value, &strval_empty);
break; break;
...@@ -2993,14 +2992,12 @@ static HRESULT WINAPI xmlreader_MoveToElement(IXmlReader* iface) ...@@ -2993,14 +2992,12 @@ static HRESULT WINAPI xmlreader_MoveToElement(IXmlReader* iface)
/* FIXME: support other node types with 'attributes' like DTD */ /* FIXME: support other node types with 'attributes' like DTD */
if (This->is_empty_element) { if (This->is_empty_element) {
reader_set_strvalue(This, StringValue_Prefix, &This->empty_element.prefix); 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); reader_set_strvalue(This, StringValue_QualifiedName, &This->empty_element.qname);
} }
else { else {
struct element *element = LIST_ENTRY(list_head(&This->elements), struct element, entry); struct element *element = LIST_ENTRY(list_head(&This->elements), struct element, entry);
if (element) { if (element) {
reader_set_strvalue(This, StringValue_Prefix, &element->prefix); reader_set_strvalue(This, StringValue_Prefix, &element->prefix);
reader_set_strvalue(This, StringValue_LocalName, &element->localname);
reader_set_strvalue(This, StringValue_QualifiedName, &element->qname); reader_set_strvalue(This, StringValue_QualifiedName, &element->qname);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment