mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
screensaver: moving "using namespace std;" to cpp ...
... to avoid the inheritance of this
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5f42845160
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-12-28 (Sun, 28 Dec 2014)
Origin message was:
------------------
- screensaver: moving "using namespace std;" to cpp ...
... to avoid the inheritance of this
------------------
This commit was generated by Migit
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
#include <global.h>
|
||||
#include <neutrino.h>
|
||||
#include <pthread.h>
|
||||
#include <algorithm> // std::sort
|
||||
#include <algorithm> // sort
|
||||
#include <ctype.h>
|
||||
#include "audiomute.h"
|
||||
#include "screensaver.h"
|
||||
@@ -40,6 +40,7 @@
|
||||
#include <video.h>
|
||||
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:
|
||||
|
Reference in New Issue
Block a user