Move intToStr() utility method to StringUtils header

This commit is contained in:
Robert Knight 2011-08-19 20:08:15 +01:00
parent 650e966bfe
commit e8e25e7c1c
2 changed files with 14 additions and 7 deletions

13
src/StringUtils.h Normal file
View file

@ -0,0 +1,13 @@
#pragma once
#include <string>
#include <sstream>
inline std::string intToStr(int i)
{
std::stringstream stream;
stream << i;
return stream.str();
}

View file

@ -1,16 +1,10 @@
#include "UpdateScript.h"
#include "Log.h"
#include "StringUtils.h"
#include "tinyxml/tinyxml.h"
std::string intToStr(int i)
{
std::stringstream stream;
stream << i;
return stream.str();
}
UpdateScript::UpdateScript()
{
}