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
1 changed files with 1 additions and 1 deletions

View File

@ -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()