From 2457b69fb3f729a7abded66bfaf3504a59641a49 Mon Sep 17 00:00:00 2001 From: Itms Date: Sun, 7 Jun 2015 09:24:19 +0000 Subject: [PATCH] Fix const attribute for some function parameters. This was SVN commit r16730. --- source/network/NetTurnManager.cpp | 2 +- source/network/NetTurnManager.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/network/NetTurnManager.cpp b/source/network/NetTurnManager.cpp index 7e389e7cbc..c2e9893c66 100644 --- a/source/network/NetTurnManager.cpp +++ b/source/network/NetTurnManager.cpp @@ -241,7 +241,7 @@ void CNetTurnManager::OnSyncError(u32 turn, const std::string& expectedHash) DisplayOOSError(turn, hash, expectedHashHex, false, &path); } -void CNetTurnManager::DisplayOOSError(u32 turn, std::string& hash, const std::string& expectedHash, const bool isReplay, OsPath* path = NULL) +void CNetTurnManager::DisplayOOSError(u32 turn, const std::string& hash, const std::string& expectedHash, bool isReplay, OsPath* path = NULL) { m_HasSyncError = true; diff --git a/source/network/NetTurnManager.h b/source/network/NetTurnManager.h index 3de52105f1..2accf58f71 100644 --- a/source/network/NetTurnManager.h +++ b/source/network/NetTurnManager.h @@ -112,7 +112,7 @@ public: /** * Shows a message box when an out of sync error has been detected in the session or visual replay. */ - virtual void DisplayOOSError(u32 turn, std::string& hash, const std::string& expectedHash, const bool isReplay, OsPath* path); + virtual void DisplayOOSError(u32 turn, const std::string& hash, const std::string& expectedHash, bool isReplay, OsPath* path); /** * Called by simulation code, to add a new command to be distributed to all clients and executed soon.