mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge pull request #3830
initramfs (1): fix(chatform): remove std::dynamic_pointer_cast in favor of static cast
This commit is contained in:
commit
d5069dd834
|
@ -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