diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-05-29 06:09:47 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-05-29 06:09:49 -0400 |
| commit | 08223bad9f46f6c23bac915ae8d41eb7eac71b64 (patch) | |
| tree | 0d898d7115d456c188029b293b125b694caa15ff /Source/Core/VideoCommon/NetPlayChatUI.cpp | |
| parent | 992c8bfc4e2394ad5786f5116f5e62ae595b5c44 (diff) | |
VideoCommon/NetPlayChatUI: Set member variable within the constructor initializer list
Member variables should be initialized within the constructor
initializer list if possible.
Diffstat (limited to 'Source/Core/VideoCommon/NetPlayChatUI.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/NetPlayChatUI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<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() |
