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

refactor(chatform): Remove useless static cast

This commit is contained in:
Anthony Bilinski 2022-02-14 01:45:44 -08:00
parent 18643da271
commit 0adf4a00f3
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -501,7 +501,7 @@ void GenericChatForm::addSystemInfoMessage(const QDateTime& datetime, SystemMess
SystemMessage::Args messageArgs)
{
SystemMessage systemMessage;
systemMessage.messageType = static_cast<SystemMessageType>(messageType);
systemMessage.messageType = messageType;
systemMessage.timestamp = datetime;
systemMessage.args = std::move(messageArgs);
chatLog.addSystemMessage(systemMessage);