From 0adf4a00f3950298ed9587b3f0e18ce01d0bbbe8 Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Mon, 14 Feb 2022 01:45:44 -0800 Subject: [PATCH] refactor(chatform): Remove useless static cast --- src/widget/form/genericchatform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/form/genericchatform.cpp b/src/widget/form/genericchatform.cpp index 110a060c1..6ec99d01a 100644 --- a/src/widget/form/genericchatform.cpp +++ b/src/widget/form/genericchatform.cpp @@ -501,7 +501,7 @@ void GenericChatForm::addSystemInfoMessage(const QDateTime& datetime, SystemMess SystemMessage::Args messageArgs) { SystemMessage systemMessage; - systemMessage.messageType = static_cast(messageType); + systemMessage.messageType = messageType; systemMessage.timestamp = datetime; systemMessage.args = std::move(messageArgs); chatLog.addSystemMessage(systemMessage);