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:
Lioncash 2019-05-29 06:09:47 -04:00
parent 992c8bfc4e
commit 08223bad9f

View File

@ -14,8 +14,8 @@ constexpr size_t MAX_BACKLOG_SIZE = 100;
std::unique_ptr<NetPlayChatUI> g_netplay_chat_ui; std::unique_ptr<NetPlayChatUI> g_netplay_chat_ui;
NetPlayChatUI::NetPlayChatUI(std::function<void(const std::string&)> callback) NetPlayChatUI::NetPlayChatUI(std::function<void(const std::string&)> callback)
: m_message_callback{std::move(callback)}
{ {
m_message_callback = std::move(callback);
} }
void NetPlayChatUI::Display() void NetPlayChatUI::Display()