Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e1c31e13
Commit
e1c31e13
authored
Mar 09, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xmllite/reader: Remove redundant parameter.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
162353ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
reader.c
dlls/xmllite/reader.c
+4
-6
No files found.
dlls/xmllite/reader.c
View file @
e1c31e13
...
...
@@ -2167,7 +2167,7 @@ static HRESULT reader_parse_attribute(xmlreader *reader)
/* [12 NS] STag ::= '<' QName (S Attribute)* S? '>'
[14 NS] EmptyElemTag ::= '<' QName (S Attribute)* S? '/>' */
static
HRESULT
reader_parse_stag
(
xmlreader
*
reader
,
strval
*
prefix
,
strval
*
local
,
strval
*
qname
,
int
*
empty
)
static
HRESULT
reader_parse_stag
(
xmlreader
*
reader
,
strval
*
prefix
,
strval
*
local
,
strval
*
qname
)
{
HRESULT
hr
;
...
...
@@ -2181,11 +2181,10 @@ static HRESULT reader_parse_stag(xmlreader *reader, strval *prefix, strval *loca
reader_skipspaces
(
reader
);
/* empty element */
if
((
*
empty
=
!
reader_cmp
(
reader
,
endW
)))
if
((
reader
->
is_empty_element
=
!
reader_cmp
(
reader
,
endW
)))
{
/* skip '/>' */
reader_skipn
(
reader
,
2
);
reader
->
is_empty_element
=
TRUE
;
reader
->
empty_element
.
prefix
=
*
prefix
;
reader
->
empty_element
.
localname
=
*
local
;
reader
->
empty_element
.
qname
=
*
qname
;
...
...
@@ -2227,16 +2226,15 @@ static HRESULT reader_parse_element(xmlreader *reader)
case
XmlReadResumeState_STag
:
{
strval
qname
,
prefix
,
local
;
int
empty
=
0
;
/* this handles empty elements too */
hr
=
reader_parse_stag
(
reader
,
&
prefix
,
&
local
,
&
qname
,
&
empty
);
hr
=
reader_parse_stag
(
reader
,
&
prefix
,
&
local
,
&
qname
);
if
(
FAILED
(
hr
))
return
hr
;
/* FIXME: need to check for defined namespace to reject invalid prefix */
/* if we got empty element and stack is empty go straight to Misc */
if
(
empty
&&
list_empty
(
&
reader
->
elements
))
if
(
reader
->
is_empty_element
&&
list_empty
(
&
reader
->
elements
))
reader
->
instate
=
XmlReadInState_MiscEnd
;
else
reader
->
instate
=
XmlReadInState_Content
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment