From 775b6a325be9a19104e73a90c7836446bf429536 Mon Sep 17 00:00:00 2001 From: initramfs Date: Tue, 25 Oct 2016 05:59:00 -0400 Subject: [PATCH] fix(chatform): remove std::dynamic_pointer_cast in favor of static cast With the removal of RTTI such a cast can cause compile failures as not all compilers automatically convert dynamic casts to static casts at compile time. Fixes #3801 --- src/widget/form/genericchatform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/form/genericchatform.cpp b/src/widget/form/genericchatform.cpp index 55c8106c5..aabc70e16 100644 --- a/src/widget/form/genericchatform.cpp +++ b/src/widget/form/genericchatform.cpp @@ -486,7 +486,7 @@ QString GenericChatForm::resolveToxId(const ToxId &id) void GenericChatForm::insertChatMessage(ChatMessage::Ptr msg) { - chatWidget->insertChatlineAtBottom(std::dynamic_pointer_cast(msg)); + chatWidget->insertChatlineAtBottom(std::static_pointer_cast(msg)); emit messageInserted(); }