summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorAnthony <Helios747@users.noreply.github.com>2017-02-06 10:20:29 -0800
committerGitHub <noreply@github.com>2017-02-06 10:20:29 -0800
commit0c7d9bbb73e77fb00e02eea3970389d8f449a7aa (patch)
tree8cf35ffd551079fa38d0e99a0eb47c1b2346b78f /Source/Core
parentf978765bf0d1fd5bd934370ec0d4486eb1ea247f (diff)
parent2597d2b69b10c160e45a5a2182abb67df520ced1 (diff)
Merge pull request #4837 from lioncash/npd
NetWindow: Make chat messages queue private
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinWX/NetPlay/NetWindow.cpp6
-rw-r--r--Source/Core/DolphinWX/NetPlay/NetWindow.h3
2 files changed, 4 insertions, 5 deletions
diff --git a/Source/Core/DolphinWX/NetPlay/NetWindow.cpp b/Source/Core/DolphinWX/NetPlay/NetWindow.cpp
index f082656a94..75cf03885e 100644
--- a/Source/Core/DolphinWX/NetPlay/NetWindow.cpp
+++ b/Source/Core/DolphinWX/NetPlay/NetWindow.cpp
@@ -386,7 +386,7 @@ void NetPlayDialog::Update()
void NetPlayDialog::AppendChat(const std::string& msg)
{
- chat_msgs.Push(msg);
+ m_chat_msgs.Push(msg);
// silly
Update();
}
@@ -613,10 +613,10 @@ void NetPlayDialog::OnThread(wxThreadEvent& event)
}
// chat messages
- while (chat_msgs.Size())
+ while (m_chat_msgs.Size())
{
std::string s;
- chat_msgs.Pop(s);
+ m_chat_msgs.Pop(s);
AddChatMessage(ChatMessageType::UserIn, s);
if (g_ActiveConfig.bShowNetPlayMessages)
diff --git a/Source/Core/DolphinWX/NetPlay/NetWindow.h b/Source/Core/DolphinWX/NetPlay/NetWindow.h
index 1dd36c52e4..bc199c2581 100644
--- a/Source/Core/DolphinWX/NetPlay/NetWindow.h
+++ b/Source/Core/DolphinWX/NetPlay/NetWindow.h
@@ -70,8 +70,6 @@ public:
const bool is_hosting = false);
~NetPlayDialog();
- Common::FifoQueue<std::string> chat_msgs;
-
void OnStart(wxCommandEvent& event);
// implementation of NetPlayUI methods
@@ -150,6 +148,7 @@ private:
std::string m_desync_player;
std::vector<int> m_playerids;
+ Common::FifoQueue<std::string> m_chat_msgs;
const CGameListCtrl* const m_game_list;