Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
88cca2cf
Commit
88cca2cf
authored
Mar 27, 2010
by
Mikhail Maroukhine
Committed by
Alexandre Julliard
Mar 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Fix compiler warnings with flag -Wcast-qual.
parent
86f76d2b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
dispex.c
dlls/msxml3/dispex.c
+2
-2
main.c
dlls/msxml3/main.c
+1
-1
node.c
dlls/msxml3/node.c
+8
-8
No files found.
dlls/msxml3/dispex.c
View file @
88cca2cf
...
...
@@ -196,12 +196,12 @@ static void add_func_info(dispex_data_t *data, DWORD *size, tid_t tid, DISPID id
static
int
dispid_cmp
(
const
void
*
p1
,
const
void
*
p2
)
{
return
((
func_info_t
*
)
p1
)
->
id
-
((
func_info_t
*
)
p2
)
->
id
;
return
((
const
func_info_t
*
)
p1
)
->
id
-
((
const
func_info_t
*
)
p2
)
->
id
;
}
static
int
func_name_cmp
(
const
void
*
p1
,
const
void
*
p2
)
{
return
strcmpiW
((
*
(
func_info_t
*
*
)
p1
)
->
name
,
(
*
(
func_info_t
*
*
)
p2
)
->
name
);
return
strcmpiW
((
*
(
func_info_t
*
const
*
)
p1
)
->
name
,
(
*
(
func_info_t
*
const
*
)
p2
)
->
name
);
}
static
dispex_data_t
*
preprocess_dispex_data
(
DispatchEx
*
This
)
...
...
dlls/msxml3/main.c
View file @
88cca2cf
...
...
@@ -62,7 +62,7 @@ static int wineXmlMatchCallback (char const * filename)
static
void
*
wineXmlOpenCallback
(
char
const
*
filename
)
{
BSTR
sFilename
=
bstr_from_xmlChar
(
(
xmlChar
*
)
filename
);
BSTR
sFilename
=
bstr_from_xmlChar
(
(
const
xmlChar
*
)
filename
);
HANDLE
hFile
;
TRACE
(
"%s
\n
"
,
debugstr_w
(
sFilename
));
...
...
dlls/msxml3/node.c
View file @
88cca2cf
...
...
@@ -1190,8 +1190,8 @@ static HRESULT WINAPI xmlnode_get_dataType(
switch
(
This
->
node
->
type
)
{
case
XML_ELEMENT_NODE
:
pVal
=
xmlGetNsProp
(
This
->
node
,
(
xmlChar
*
)
"dt"
,
(
xmlChar
*
)
"urn:schemas-microsoft-com:datatypes"
);
pVal
=
xmlGetNsProp
(
This
->
node
,
(
const
xmlChar
*
)
"dt"
,
(
const
xmlChar
*
)
"urn:schemas-microsoft-com:datatypes"
);
if
(
pVal
)
{
V_VT
(
dataTypeName
)
=
VT_BSTR
;
...
...
@@ -1260,20 +1260,20 @@ static HRESULT WINAPI xmlnode_put_dataType(
xmlAttrPtr
pAttr
=
NULL
;
xmlChar
*
str
=
xmlChar_from_wchar
(
dataTypeName
);
pAttr
=
xmlHasNsProp
(
This
->
node
,
(
xmlChar
*
)
"dt"
,
(
xmlChar
*
)
"urn:schemas-microsoft-com:datatypes"
);
pAttr
=
xmlHasNsProp
(
This
->
node
,
(
const
xmlChar
*
)
"dt"
,
(
const
xmlChar
*
)
"urn:schemas-microsoft-com:datatypes"
);
if
(
pAttr
)
{
pAttr
=
xmlSetNsProp
(
This
->
node
,
pAttr
->
ns
,
(
xmlChar
*
)
"dt"
,
str
);
pAttr
=
xmlSetNsProp
(
This
->
node
,
pAttr
->
ns
,
(
const
xmlChar
*
)
"dt"
,
str
);
hr
=
S_OK
;
}
else
{
pNS
=
xmlNewNs
(
This
->
node
,
(
xmlChar
*
)
"urn:schemas-microsoft-com:datatypes"
,
(
xmlChar
*
)
"dt"
);
pNS
=
xmlNewNs
(
This
->
node
,
(
const
xmlChar
*
)
"urn:schemas-microsoft-com:datatypes"
,
(
const
xmlChar
*
)
"dt"
);
if
(
pNS
)
{
pAttr
=
xmlNewNsProp
(
This
->
node
,
pNS
,
(
xmlChar
*
)
"dt"
,
str
);
pAttr
=
xmlNewNsProp
(
This
->
node
,
pNS
,
(
const
xmlChar
*
)
"dt"
,
str
);
if
(
pAttr
)
{
xmlAddChild
(
This
->
node
,
(
xmlNodePtr
)
pAttr
);
...
...
@@ -1402,7 +1402,7 @@ static HRESULT WINAPI xmlnode_get_xml(
/* Attribute Nodes return a space in front of their name */
pContent
=
xmlBufferContent
(
pXmlBuf
);
if
(
((
char
*
)
pContent
)[
0
]
==
' '
)
if
(
((
c
onst
c
har
*
)
pContent
)[
0
]
==
' '
)
bstrContent
=
bstr_from_xmlChar
(
pContent
+
1
);
else
bstrContent
=
bstr_from_xmlChar
(
pContent
);
...
...
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