diff --git a/src/gui/screensaver.cpp b/src/gui/screensaver.cpp index ddc51feb7..ebc3827d5 100644 --- a/src/gui/screensaver.cpp +++ b/src/gui/screensaver.cpp @@ -32,7 +32,7 @@ #include #include #include -#include // std::sort +#include // sort #include #include "audiomute.h" #include "screensaver.h" @@ -40,6 +40,7 @@ #include extern cVideo * videoDecoder; +using namespace std; CScreenSaver::CScreenSaver() { @@ -130,11 +131,11 @@ void* CScreenSaver::ScreenSaverPrg(void* arg) bool CScreenSaver::ReadDir() { - std::string d = g_settings.screensaver_dir; + string d = g_settings.screensaver_dir; if (d.length() > 1) { //remove trailing slash - std::string::iterator it = d.end() - 1; + string::iterator it = d.end() - 1; if (*it == '/') d.erase(it); } @@ -177,7 +178,7 @@ bool CScreenSaver::ReadDir() str += "/"; str += (*dirpointer).d_name; - if ((std::string) dir_name == DATADIR "/neutrino/icons") + if ((string) dir_name == DATADIR "/neutrino/icons") { /* backward compatiblity: diff --git a/src/gui/screensaver.h b/src/gui/screensaver.h index aadfaeb51..964c6785b 100644 --- a/src/gui/screensaver.h +++ b/src/gui/screensaver.h @@ -29,8 +29,6 @@ #include #include -using namespace std; - class CScreenSaver { private: