lcd4linux: use to_string() function from helpers.cpp

Origin commit data
------------------
Branch: ni/coolstream
Commit: 48e5d1d7ef
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-05-24 (Tue, 24 May 2016)

Origin message was:
------------------
- lcd4linux: use to_string() function from helpers.cpp

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2016-05-24 09:32:24 +02:00
parent 4acf864e15
commit 1ed6a6771e
2 changed files with 5 additions and 13 deletions

View File

@@ -312,7 +312,7 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
if (m_Tuner != Tuner)
{
WriteFile(TUNER, Int2String(Tuner));
WriteFile(TUNER, to_string(Tuner));
m_Tuner = Tuner;
}
@@ -322,7 +322,7 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
if (m_Volume != Volume)
{
WriteFile(VOLUME, Int2String(Volume));
WriteFile(VOLUME, to_string(Volume));
m_Volume = Volume;
}
@@ -528,7 +528,7 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
if (m_ChannelNr != ChannelNr)
{
WriteFile(CHANNELNR, Int2String(ChannelNr));
WriteFile(CHANNELNR, to_string(ChannelNr));
m_ChannelNr = ChannelNr;
}
@@ -543,7 +543,7 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
if (m_ModeLogo != ModeLogo)
{
WriteFile(MODE_LOGO, Int2String(ModeLogo));
WriteFile(MODE_LOGO, to_string(ModeLogo));
m_ModeLogo = ModeLogo;
}
@@ -751,7 +751,7 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
if (m_Progress != Progress)
{
WriteFile(PROGRESS, Int2String(Progress));
WriteFile(PROGRESS, to_string(Progress));
m_Progress = Progress;
}
@@ -795,13 +795,6 @@ bool CLCD4l::WriteFile(const char *file, std::string content, bool convert)
return ret;
}
string CLCD4l::Int2String(int iConvert)
{
std::stringstream strConvert;
strConvert << iConvert;
return strConvert.str();
}
uint64_t CLCD4l::GetParseID()
{
uint64_t ID = CNeutrinoApp::getInstance()->getMode();

View File

@@ -79,7 +79,6 @@ class CLCD4l
bool CompareParseID(uint64_t &i_ParseID);
bool GetLogoName(uint64_t channel_id, std::string channel_name, std::string & logo);
std::string Int2String(int iconvert);
std::string hexStr(unsigned char* data);
void strReplace(std::string & orig, const char *fstr, const std::string rstr);
bool WriteFile(const char *file, std::string content = "", bool convert = false);