VideoCommon/NetPlayChatUI: Set member variable within the constructor initializer list
Member variables should be initialized within the constructor initializer list if possible.
This commit is contained in:
parent
992c8bfc4e
commit
08223bad9f
|
@ -14,8 +14,8 @@ constexpr size_t MAX_BACKLOG_SIZE = 100;
|
|||
std::unique_ptr<NetPlayChatUI> g_netplay_chat_ui;
|
||||
|
||||
NetPlayChatUI::NetPlayChatUI(std::function<void(const std::string&)> callback)
|
||||
: m_message_callback{std::move(callback)}
|
||||
{
|
||||
m_message_callback = std::move(callback);
|
||||
}
|
||||
|
||||
void NetPlayChatUI::Display()
|
||||
|
|
Loading…
Reference in New Issue