From 08223bad9f46f6c23bac915ae8d41eb7eac71b64 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 29 May 2019 06:09:47 -0400 Subject: [PATCH] VideoCommon/NetPlayChatUI: Set member variable within the constructor initializer list Member variables should be initialized within the constructor initializer list if possible. --- Source/Core/VideoCommon/NetPlayChatUI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/NetPlayChatUI.cpp b/Source/Core/VideoCommon/NetPlayChatUI.cpp index 7587229ee0..29becc020f 100644 --- a/Source/Core/VideoCommon/NetPlayChatUI.cpp +++ b/Source/Core/VideoCommon/NetPlayChatUI.cpp @@ -14,8 +14,8 @@ constexpr size_t MAX_BACKLOG_SIZE = 100; std::unique_ptr g_netplay_chat_ui; NetPlayChatUI::NetPlayChatUI(std::function callback) + : m_message_callback{std::move(callback)} { - m_message_callback = std::move(callback); } void NetPlayChatUI::Display()