1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

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
This commit is contained in:
initramfs 2016-10-25 05:59:00 -04:00
parent 1c2b271716
commit 775b6a325b
No known key found for this signature in database
GPG Key ID: 3B6ECEC9C4DE199E

View File

@ -486,7 +486,7 @@ QString GenericChatForm::resolveToxId(const ToxId &id)
void GenericChatForm::insertChatMessage(ChatMessage::Ptr msg)
{
chatWidget->insertChatlineAtBottom(std::dynamic_pointer_cast<ChatLine>(msg));
chatWidget->insertChatlineAtBottom(std::static_pointer_cast<ChatLine>(msg));
emit messageInserted();
}