From 2e2ea354b62e73f0307719002e6705bca771295e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 25 Mar 2015 08:18:12 +0100 Subject: [PATCH] [kcmkwin/tabbox] static_cast QKeyEvent Fixes a defect reported by coverity. --- kcmkwin/kwintabbox/layoutpreview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kcmkwin/kwintabbox/layoutpreview.cpp b/kcmkwin/kwintabbox/layoutpreview.cpp index 1575c4b1a2..0b19498f8f 100644 --- a/kcmkwin/kwintabbox/layoutpreview.cpp +++ b/kcmkwin/kwintabbox/layoutpreview.cpp @@ -88,7 +88,7 @@ LayoutPreview::~LayoutPreview() bool LayoutPreview::eventFilter(QObject *object, QEvent *event) { if (event->type() == QEvent::KeyPress) { - QKeyEvent *keyEvent = dynamic_cast(event); + QKeyEvent *keyEvent = static_cast(event); if (keyEvent->key() == Qt::Key_Escape || keyEvent->key() == Qt::Key_Return || keyEvent->key() == Qt::Key_Enter ||