From ad5735b9fd9fb2061a62a74c5011b5f153cefc0b Mon Sep 17 00:00:00 2001 From: Kai Philipp Date: Mon, 9 Sep 2019 20:06:12 +0200 Subject: [PATCH] std:array ? --- src/net/common/sessiondata.cpp | 4 ++-- src/net/sessiondata.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/net/common/sessiondata.cpp b/src/net/common/sessiondata.cpp index 42494ba0..7e72275a 100644 --- a/src/net/common/sessiondata.cpp +++ b/src/net/common/sessiondata.cpp @@ -402,13 +402,13 @@ SessionData::GetPlayerData() } void -SessionData::SetPlayerLastGames(Array lastGames) +SessionData::SetPlayerLastGames(std:array lastGames) { boost::mutex::scoped_lock lock(m_dataMutex); m_lastGames = player; } -Array +std::array SessionData::GetPlayerLastGames() { boost::mutex::scoped_lock lock(m_dataMutex); diff --git a/src/net/sessiondata.h b/src/net/sessiondata.h index 92c75bea..73ea97c2 100644 --- a/src/net/sessiondata.h +++ b/src/net/sessiondata.h @@ -127,8 +127,8 @@ public: void SetPlayerData(boost::shared_ptr player); boost::shared_ptr GetPlayerData(); - void SetPlayerLastGames(Array lastGames); - Array GetPlayerLastGames(); + void SetPlayerLastGames(std::array lastGames); + std::array GetPlayerLastGames(); std::string GetRemoteIPAddressFromSocket() const; @@ -163,7 +163,7 @@ private: std::string m_password; boost::shared_ptr m_playerData; - Array m_lastGames; + std::array m_lastGames; mutable boost::mutex m_dataMutex; };