mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
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
Block a user