From a79c9479b7ddff15b6349778f9f5965b4cca7376 Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 25 Aug 2015 14:40:53 -0300 Subject: [PATCH] Replace dynamic_cast with static_cast in Widget::getRoot() --- src/ui/widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/widget.cpp b/src/ui/widget.cpp index aebcac7db..52eaf202c 100644 --- a/src/ui/widget.cpp +++ b/src/ui/widget.cpp @@ -341,7 +341,7 @@ Window* Widget::getRoot() while (widget) { if (widget->type() == kWindowWidget) - return dynamic_cast(widget); + return static_cast(widget); widget = widget->m_parent; }