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:
parent
1c2b271716
commit
775b6a325b
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user