diff --git a/src/gui/imageinfo_ni.cpp b/src/gui/imageinfo_ni.cpp index 4cb1404de..a4e565d2e 100644 --- a/src/gui/imageinfo_ni.cpp +++ b/src/gui/imageinfo_ni.cpp @@ -386,15 +386,15 @@ void CImageInfoNI::StopInfoThread() } } -string CImageInfoNI::get_systemRoot() +std::string CImageInfoNI::get_systemRoot() { - fstream fh; - string s; - string root =""; - const string file = "/proc/cmdline"; - const string str = "root=mtd:"; + std::fstream fh; + std::string s; + std::string root = ""; + const std::string file = "/proc/cmdline"; + const std::string str = "root=mtd:"; - fh.open(file.c_str(), ios::in); + fh.open(file.c_str(), std::ios::in); if(!fh.is_open()) { @@ -405,8 +405,8 @@ string CImageInfoNI::get_systemRoot() { getline(fh, s); - string::size_type begin = s.find(str) + str.length(); - string::size_type end = s.find(' ', begin); + std::string::size_type begin = s.find(str) + str.length(); + std::string::size_type end = s.find(' ', begin); root = s.substr(begin, end - begin); if(!root.empty()) @@ -632,7 +632,7 @@ void CImageInfoNI::paint_DF_Info(int posx) buf.str(""); buf.precision(2); - buf << fixed; + buf << std::fixed; if (image_size.blocks > 1024) { @@ -733,7 +733,7 @@ void CImageInfoNI::paint_MEM_Info(int posx, int posy) posy+= sheight; buf.str(""); buf.precision(2); - buf << fixed << "Total: " << (mem_info.total/1024.0) << " MB Used: " << (mem_info.used/1024.0) << " MB"; + buf << std::fixed << "Total: " << (mem_info.total/1024.0) << " MB Used: " << (mem_info.used/1024.0) << " MB"; frameBuffer->paintBoxRel(posx, posy - sheight, max_text_width, sheight, COL_INFOBAR_PLUS_0); g_Font[font_small]->RenderString(posx, posy, max_text_width, buf.str().c_str(), COL_INFOBAR_TEXT); @@ -905,7 +905,7 @@ void CImageInfoNI::paint_NET_Info(int posx, int posy) write_old = write_akt; } -string CImageInfoNI::getYWebVersion() +std::string CImageInfoNI::getYWebVersion() { CConfigFile yV('=', false); yV.loadConfig(PRIVATE_HTTPDDIR "/Y_Version.txt"); diff --git a/src/gui/imdb.cpp b/src/gui/imdb.cpp index 45d2c4480..27cc2a304 100644 --- a/src/gui/imdb.cpp +++ b/src/gui/imdb.cpp @@ -247,7 +247,7 @@ std::string CIMDB::googleIMDb(std::string s) void CIMDB::initMap( std::map& my ) { - string errMsg = ""; + std::string errMsg = ""; Json::Value root; std::ostringstream ss; diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index c9794947b..51a9de590 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -2618,8 +2618,8 @@ void CInfoViewer::ecmInfoBox_show(const char * txt, int w, int h, Font * font) //set new window dimensions int h_offset = 5; int w_offset = 10; - ecmInfoBox->setWidth(min(max_w, w + 2*w_offset)); - ecmInfoBox->setHeight(min(max_h, h_header + h + 2*h_offset)); + ecmInfoBox->setWidth(std::min(max_w, w + 2*w_offset)); + ecmInfoBox->setHeight(std::min(max_h, h_header + h + 2*h_offset)); ecmInfoBox->Refresh(); //calc window position diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index 592e8db77..b136fa7e2 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -1027,12 +1027,12 @@ bool CMoviePlayerGui::getLiveUrl(const std::string &url, const std::string &scri printf("[%s:%s:%d] script: %s\n", __file__, __func__, __LINE__, _s.c_str()); if (!file_exists(_s.c_str())) { - _s = string(WEBTVDIR_VAR) + "/" + _script; + _s = std::string(WEBTVDIR_VAR) + "/" + _script; printf("[%s:%s:%d] script: %s\n", __file__, __func__, __LINE__, _s.c_str()); } if (!file_exists(_s.c_str())) { - _s = string(WEBTVDIR) + "/" + _script; + _s = std::string(WEBTVDIR) + "/" + _script; printf("[%s:%s:%d] script: %s\n", __file__, __func__, __LINE__, _s.c_str()); } _script = _s; diff --git a/src/gui/netfs_setup.cpp b/src/gui/netfs_setup.cpp index 8826108e0..b4ac83408 100644 --- a/src/gui/netfs_setup.cpp +++ b/src/gui/netfs_setup.cpp @@ -61,7 +61,7 @@ CNETFSMountGui::CNETFSMountGui() autoPath = checkVarPath("/etc/auto.net"); } -std::string CNETFSMountGui::checkVarPath(const string &file) +std::string CNETFSMountGui::checkVarPath(const std::string &file) { std::string var = "/var" + file; if(file_exists(var.c_str())) diff --git a/src/gui/plugins_hide.cpp b/src/gui/plugins_hide.cpp index ed8275c06..69745aa43 100644 --- a/src/gui/plugins_hide.cpp +++ b/src/gui/plugins_hide.cpp @@ -96,7 +96,7 @@ int CPluginsHideMenu::menu() bool CPluginsHideNotifier::changeNotify(const neutrino_locale_t, void * data) { - fstream f; + std::fstream f; std::ostringstream os; std::string line; std::string cfg; @@ -104,10 +104,10 @@ bool CPluginsHideNotifier::changeNotify(const neutrino_locale_t, void * data) printf("CPluginsHideNotifier::changeNotify %s\n",filename); - os << "hide=" << (((*(int *)data) != 0) ? 1 : 0) << endl; + os << "hide=" << (((*(int *)data) != 0) ? 1 : 0) << std::endl; std::string hide = os.str(); - f.open(filename, ios::in); + f.open(filename, std::ios::in); while (!f.eof()) { getline(f, line); @@ -116,7 +116,7 @@ bool CPluginsHideNotifier::changeNotify(const neutrino_locale_t, void * data) if (line.substr(0,4) == "hide") { - cfg += (string) hide; + cfg += (std::string) hide; exist = true; } else @@ -132,8 +132,8 @@ bool CPluginsHideNotifier::changeNotify(const neutrino_locale_t, void * data) //printf("%s",cfg.c_str()); - f.open(filename, ios::out); - f << cfg << endl; + f.open(filename, std::ios::out); + f << cfg << std::endl; f.close(); g_Plugins->loadPlugins();