From aa69a97cfde7f0295d1b9e33bc7fb67e3c8c9f27 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 31 Mar 2015 13:15:52 +0200 Subject: [PATCH] Reduce to static_cast any reinterpret_cast from void pointers Change-Id: I9b87886c7af22514f9cadfab625f06987ace6529 --- sax/source/fastparser/fastparser.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx index 38a1d2e65709..a3ee5b586c22 100644 --- a/sax/source/fastparser/fastparser.cxx +++ b/sax/source/fastparser/fastparser.cxx @@ -292,19 +292,19 @@ extern "C" { 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) { - FastSaxParserImpl* pFastParser = reinterpret_cast( userData ); + FastSaxParserImpl* pFastParser = static_cast( userData ); 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) { - FastSaxParserImpl* pFastParser = reinterpret_cast( userData ); + FastSaxParserImpl* pFastParser = static_cast( userData ); pFastParser->callbackEndElement( localName, prefix, URI ); } static void call_callbackCharacters( void *userData , const xmlChar *s , int nLen ) { - FastSaxParserImpl* pFastParser = reinterpret_cast( userData ); + FastSaxParserImpl* pFastParser = static_cast( userData ); pFastParser->callbackCharacters( s, nLen ); }