From e21611090147943e78c6d7a3a7080a9a97c54bf0 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 9 May 2016 07:35:19 +0300 Subject: loplugin:redundantcast reinterpret_cast from 'void *' to 'std::vector > *' can be simplified to static_cast. Change-Id: I1899a1c570c4c56d8c7fe73745eac45061fb8bae --- desktop/qa/desktop_lib/test_desktop_lib.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop/qa') diff --git a/desktop/qa/desktop_lib/test_desktop_lib.cxx b/desktop/qa/desktop_lib/test_desktop_lib.cxx index 86ca392c8626..6beb0e7696ed 100644 --- a/desktop/qa/desktop_lib/test_desktop_lib.cxx +++ b/desktop/qa/desktop_lib/test_desktop_lib.cxx @@ -1267,7 +1267,7 @@ void DesktopLOKTest::testContextMenuImpress() static void callbackCompressionTest(const int type, const char* payload, void* data) { - std::vector>* notifs = reinterpret_cast>*>(data); + std::vector>* notifs = static_cast>*>(data); notifs->emplace_back(type, std::string(payload ? payload : "(nil)")); } -- cgit