Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(chatform): remove std::dynamic_pointer_cast in favor of static cast
Browse files Browse the repository at this point in the history
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
  • Loading branch information
initramfs committed Oct 25, 2016
1 parent 1c2b271 commit 775b6a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widget/form/genericchatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 775b6a3

Please sign in to comment.