From d000f611d8b22eb0e4e98f3ce9efab8895a85a72 Mon Sep 17 00:00:00 2001 From: Martin Marmsoler Date: Thu, 28 May 2020 20:48:08 +0200 Subject: [PATCH] - static_cast because it is a condition that it is PartTerminal --- sources/editor/terminaleditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/editor/terminaleditor.cpp b/sources/editor/terminaleditor.cpp index 76f516202..1aa4c177a 100644 --- a/sources/editor/terminaleditor.cpp +++ b/sources/editor/terminaleditor.cpp @@ -106,7 +106,7 @@ bool TerminalEditor::setPart(CustomElementPart* new_part) m_part = nullptr; return(true); } - if (PartTerminal *part_terminal = dynamic_cast(new_part)) + if (PartTerminal *part_terminal = static_cast(new_part)) { if(m_part == part_terminal) return true; if (m_part)