mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2024-11-23 04:01:59 +00:00
Move intToStr() utility method to StringUtils header
This commit is contained in:
parent
650e966bfe
commit
e8e25e7c1c
2 changed files with 14 additions and 7 deletions
13
src/StringUtils.h
Normal file
13
src/StringUtils.h
Normal 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();
|
||||
}
|
||||
|
||||
|
|
@ -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()
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue