Clean up C-style casts from pointers to void
Change-Id: Id9c24eea7b52fa28e0fdde39f28dc625aa82ffc2
This commit is contained in:
parent
ba868c28a3
commit
7a1c56c5a2
@ -839,31 +839,31 @@ SimpleXMLParser::~SimpleXMLParser()
|
||||
void SimpleXMLParser::StartElementHandler(
|
||||
void *userData, const XML_Char *name, const XML_Char **atts )
|
||||
{
|
||||
(( SimpleXMLParser * ) userData )->StartElement( name, atts );
|
||||
static_cast<SimpleXMLParser *>(userData)->StartElement( name, atts );
|
||||
}
|
||||
|
||||
void SimpleXMLParser::EndElementHandler(
|
||||
void *userData, const XML_Char *name )
|
||||
{
|
||||
(( SimpleXMLParser * ) userData )->EndElement( name );
|
||||
static_cast<SimpleXMLParser *>(userData)->EndElement( name );
|
||||
}
|
||||
|
||||
void SimpleXMLParser::CharacterDataHandler(
|
||||
void *userData, const XML_Char *s, int len )
|
||||
{
|
||||
(( SimpleXMLParser * ) userData )->CharacterData( s, len );
|
||||
static_cast<SimpleXMLParser *>(userData)->CharacterData( s, len );
|
||||
}
|
||||
|
||||
void SimpleXMLParser::CommentHandler(
|
||||
void *userData, const XML_Char *data )
|
||||
{
|
||||
(( SimpleXMLParser * ) userData )->Comment( data );
|
||||
static_cast<SimpleXMLParser *>(userData)->Comment( data );
|
||||
}
|
||||
|
||||
void SimpleXMLParser::DefaultHandler(
|
||||
void *userData, const XML_Char *s, int len )
|
||||
{
|
||||
(( SimpleXMLParser * ) userData )->Default( s, len );
|
||||
static_cast<SimpleXMLParser *>(userData)->Default( s, len );
|
||||
}
|
||||
|
||||
void SimpleXMLParser::StartElement(
|
||||
|
Loading…
x
Reference in New Issue
Block a user