summaryrefslogtreecommitdiff
path: root/desktop/inc/lib
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-05-08 09:07:10 +0300
committerTor Lillqvist <tml@collabora.com>2016-05-08 09:07:10 +0300
commitcf2cff00de75baa2d5be27ad032d0fa4d5cfb578 (patch)
tree456d90ae72dedb3096e9090e9f0b42de45f3f68b /desktop/inc/lib
parentead37770442a0244094779d199303b7b7e6d634c (diff)
loplugin:redundantcast
Reinterpret_cast from 'void *' to 'desktop::CallbackFlushHandler *' can be simplified to static_cast. Change-Id: I648e91d0ca234162833f19595ae60838f81963bc
Diffstat (limited to 'desktop/inc/lib')
-rw-r--r--desktop/inc/lib/init.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/inc/lib/init.hxx b/desktop/inc/lib/init.hxx
index 5c987bec57ab..b8878076b7f5 100644
--- a/desktop/inc/lib/init.hxx
+++ b/desktop/inc/lib/init.hxx
@@ -62,7 +62,7 @@ namespace desktop {
static
void callback(const int type, const char* payload, void* data)
{
- CallbackFlushHandler* self = reinterpret_cast<CallbackFlushHandler*>(data);
+ CallbackFlushHandler* self = static_cast<CallbackFlushHandler*>(data);
if (self)
{
self->queue(type, payload);