summaryrefslogtreecommitdiff
path: root/sax/source/fastparser/fastparser.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sax/source/fastparser/fastparser.cxx')
-rw-r--r--sax/source/fastparser/fastparser.cxx6
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 );
}