summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-31 13:16:31 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-03-31 13:16:31 +0200
commit1140d4c950712c4b14b9fcd04905942dc97a02b1 (patch)
tree079264be0d6e075d39d1de239282f0d223536691 /shell
parent749e5cdf3895526380ba0d24af0dd1c4bbdc9ea6 (diff)
Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: I443d86e9805dd994006d8bde6dabd72e14a2cff5
Diffstat (limited to 'shell')
-rw-r--r--shell/source/all/xml_parser.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/source/all/xml_parser.cxx b/shell/source/all/xml_parser.cxx
index 8948b8eb5955..3c9669aaaae6 100644
--- a/shell/source/all/xml_parser.cxx
+++ b/shell/source/all/xml_parser.cxx
@@ -56,8 +56,8 @@ namespace /* private */
inline xml_parser* get_parser_instance(void* data)
{
- return reinterpret_cast<xml_parser*>(XML_GetUserData(
- reinterpret_cast<XML_Parser>(data)));
+ return static_cast<xml_parser*>(XML_GetUserData(
+ static_cast<XML_Parser>(data)));
}
bool has_only_whitespaces(const XML_Char* s, int len)