1
0
forked from 0ad/0ad

Fix const attribute for some function parameters.

This was SVN commit r16730.
This commit is contained in:
Nicolas Auvray 2015-06-07 09:24:19 +00:00
parent ce19d55176
commit 2457b69fb3
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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.