mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-01 01:13:53 +00: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…
x
Reference in New Issue
Block a user