mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 01:29:50 +00:00
Remove duplication of the Hexify function.
Remove the useless extern keyword from function declarations in ps/Util.h. Patch by echotangoecho, refs #4095 This was SVN commit r18591.
This commit is contained in:
@@ -39,18 +39,7 @@
|
||||
#include "simulation2/helpers/SimulationCommand.h"
|
||||
|
||||
#include <ctime>
|
||||
#include <sstream>
|
||||
#include <fstream>
|
||||
#include <iomanip>
|
||||
|
||||
static std::string Hexify(const std::string& s)
|
||||
{
|
||||
std::stringstream str;
|
||||
str << std::hex;
|
||||
for (size_t i = 0; i < s.size(); ++i)
|
||||
str << std::setfill('0') << std::setw(2) << (int)(unsigned char)s[i];
|
||||
return str.str();
|
||||
}
|
||||
|
||||
CReplayLogger::CReplayLogger(ScriptInterface& scriptInterface) :
|
||||
m_ScriptInterface(scriptInterface), m_Stream(NULL)
|
||||
|
||||
Reference in New Issue
Block a user