Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: I9b87886c7af22514f9cadfab625f06987ace6529
This commit is contained in:
@@ -292,19 +292,19 @@ extern "C" {
|
|||||||
static void call_callbackStartElement(void *userData, const xmlChar *localName , const xmlChar* prefix, const xmlChar* URI,
|
static void call_callbackStartElement(void *userData, const xmlChar *localName , const xmlChar* prefix, const xmlChar* URI,
|
||||||
int numNamespaces, const xmlChar** namespaces, int numAttributes, int defaultedAttributes, const xmlChar **attributes)
|
int numNamespaces, const xmlChar** namespaces, int numAttributes, int defaultedAttributes, const xmlChar **attributes)
|
||||||
{
|
{
|
||||||
FastSaxParserImpl* pFastParser = reinterpret_cast<FastSaxParserImpl*>( userData );
|
FastSaxParserImpl* pFastParser = static_cast<FastSaxParserImpl*>( userData );
|
||||||
pFastParser->callbackStartElement( localName, prefix, URI, numNamespaces, namespaces, numAttributes, defaultedAttributes, attributes );
|
pFastParser->callbackStartElement( localName, prefix, URI, numNamespaces, namespaces, numAttributes, defaultedAttributes, attributes );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void call_callbackEndElement(void *userData, const xmlChar* localName, const xmlChar* prefix, const xmlChar* URI)
|
static void call_callbackEndElement(void *userData, const xmlChar* localName, const xmlChar* prefix, const xmlChar* URI)
|
||||||
{
|
{
|
||||||
FastSaxParserImpl* pFastParser = reinterpret_cast<FastSaxParserImpl*>( userData );
|
FastSaxParserImpl* pFastParser = static_cast<FastSaxParserImpl*>( userData );
|
||||||
pFastParser->callbackEndElement( localName, prefix, URI );
|
pFastParser->callbackEndElement( localName, prefix, URI );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void call_callbackCharacters( void *userData , const xmlChar *s , int nLen )
|
static void call_callbackCharacters( void *userData , const xmlChar *s , int nLen )
|
||||||
{
|
{
|
||||||
FastSaxParserImpl* pFastParser = reinterpret_cast<FastSaxParserImpl*>( userData );
|
FastSaxParserImpl* pFastParser = static_cast<FastSaxParserImpl*>( userData );
|
||||||
pFastParser->callbackCharacters( s, nLen );
|
pFastParser->callbackCharacters( s, nLen );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user