From cf2cff00de75baa2d5be27ad032d0fa4d5cfb578 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sun, 8 May 2016 09:07:10 +0300 Subject: loplugin:redundantcast Reinterpret_cast from 'void *' to 'desktop::CallbackFlushHandler *' can be simplified to static_cast. Change-Id: I648e91d0ca234162833f19595ae60838f81963bc --- desktop/inc/lib/init.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop/inc/lib') 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(data); + CallbackFlushHandler* self = static_cast(data); if (self) { self->queue(type, payload); -- cgit