diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-31 13:15:52 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-31 13:15:52 +0200 |
commit | aa69a97cfde7f0295d1b9e33bc7fb67e3c8c9f27 (patch) | |
tree | 69f1da91e056bd7751136b42c23e28ffd6fdaac1 /sax/source | |
parent | 0e8cb2028a0c9aaf760d4cbb8186ea6039667b4e (diff) |
Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: I9b87886c7af22514f9cadfab625f06987ace6529
Diffstat (limited to 'sax/source')
-rw-r--r-- | sax/source/fastparser/fastparser.cxx | 6 |
1 files 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<FastSaxParserImpl*>( userData ); + FastSaxParserImpl* pFastParser = static_cast<FastSaxParserImpl*>( 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<FastSaxParserImpl*>( userData ); + FastSaxParserImpl* pFastParser = static_cast<FastSaxParserImpl*>( userData ); pFastParser->callbackEndElement( localName, prefix, URI ); } 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 ); } |