summaryrefslogtreecommitdiff
path: root/desktop/qa
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-05-09 07:35:19 +0300
committerTor Lillqvist <tml@collabora.com>2016-05-09 07:35:19 +0300
commite21611090147943e78c6d7a3a7080a9a97c54bf0 (patch)
tree4f4d8d110217657d2be67d02d7831b4487a46399 /desktop/qa
parent3d27afd26f7b85c46a7c7d08498000b9dbcea1c8 (diff)
loplugin:redundantcast
reinterpret_cast from 'void *' to 'std::vector<std::tuple<int, std::string> > *' can be simplified to static_cast. Change-Id: I1899a1c570c4c56d8c7fe73745eac45061fb8bae
Diffstat (limited to 'desktop/qa')
-rw-r--r--desktop/qa/desktop_lib/test_desktop_lib.cxx2
1 files changed, 1 insertions, 1 deletions
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<std::tuple<int, std::string>>* notifs = reinterpret_cast<std::vector<std::tuple<int, std::string>>*>(data);
+ std::vector<std::tuple<int, std::string>>* notifs = static_cast<std::vector<std::tuple<int, std::string>>*>(data);
notifs->emplace_back(type, std::string(payload ? payload : "(nil)"));
}