diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:04:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:09:22 +0100 |
commit | 7a1c56c5a22ed38ec5d0b1e75bd925f10c43ec56 (patch) | |
tree | b8198bab16f42df0bfda1d443366be1e08f3bc41 /l10ntools | |
parent | ba868c28a34d467bb800fd27bd2a43c8d8ea1753 (diff) |
Clean up C-style casts from pointers to void
Change-Id: Id9c24eea7b52fa28e0fdde39f28dc625aa82ffc2
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/xmlparse.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/l10ntools/source/xmlparse.cxx b/l10ntools/source/xmlparse.cxx index 6b2a30425848..21d07687fd54 100644 --- a/l10ntools/source/xmlparse.cxx +++ b/l10ntools/source/xmlparse.cxx @@ -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( |