std:array ?

This commit is contained in:
Kai Philipp
2019-09-09 20:06:12 +02:00
parent 24c05f6d74
commit ad5735b9fd
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -402,13 +402,13 @@ SessionData::GetPlayerData()
}
void
SessionData::SetPlayerLastGames(Array<long, 25> lastGames)
SessionData::SetPlayerLastGames(std:array<long, 25> lastGames)
{
boost::mutex::scoped_lock lock(m_dataMutex);
m_lastGames = player;
}
Array<long, 25>
std::array<long, 25>
SessionData::GetPlayerLastGames()
{
boost::mutex::scoped_lock lock(m_dataMutex);
+3 -3
View File
@@ -127,8 +127,8 @@ public:
void SetPlayerData(boost::shared_ptr<PlayerData> player);
boost::shared_ptr<PlayerData> GetPlayerData();
void SetPlayerLastGames(Array<long, 25> lastGames);
Array<long, 25> GetPlayerLastGames();
void SetPlayerLastGames(std::array<long, 25> lastGames);
std::array<long, 25> GetPlayerLastGames();
std::string GetRemoteIPAddressFromSocket() const;
@@ -163,7 +163,7 @@ private:
std::string m_password;
boost::shared_ptr<PlayerData> m_playerData;
Array<long, 25> m_lastGames;
std::array<long, 25> m_lastGames;
mutable boost::mutex m_dataMutex;
};