mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
remove "using namespace std" from header files
"using namespace std" in headers is considered bad practice, so move it
either into the respective cpp files or (for files which have lots of
other std::xxx usage anyway) just write it out explicitly.
Looking at the headers and the affected cpp files, one can actually see
why it is bad practice, as it's spreading very far ;-)
Origin commit data
------------------
Commit: 0d9139054a
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-10-01 (Sun, 01 Oct 2017)
This commit is contained in:
committed by
Jacek Jendrzej
parent
ffcc694393
commit
c9d4fdd9cc
@@ -1279,10 +1279,10 @@ std::string CMovieBrowser::getScreenshotName(std::string movie, bool is_dir)
|
||||
else
|
||||
found = movie.find_last_of(".");
|
||||
|
||||
if (found == string::npos)
|
||||
if (found == std::string::npos)
|
||||
return "";
|
||||
|
||||
vector<std::string>::iterator it = PicExts.begin();
|
||||
std::vector<std::string>::iterator it = PicExts.begin();
|
||||
while (it < PicExts.end()) {
|
||||
ret = movie;
|
||||
ext = *it;
|
||||
@@ -1325,7 +1325,7 @@ void CMovieBrowser::refreshChannelLogo(void)
|
||||
if (m_channelLogo && m_channelLogo->hasLogo())
|
||||
{
|
||||
// TODO: move into an own handler, eg. header, so channel logo should be paint in header object
|
||||
m_channelLogo->setWidth(min(m_channelLogo->getWidth(), w_logo_max), true);
|
||||
m_channelLogo->setWidth(std::min(m_channelLogo->getWidth(), w_logo_max), true);
|
||||
if (m_channelLogo->getHeight() > h_logo_max)
|
||||
m_channelLogo->setHeight(h_logo_max, true);
|
||||
|
||||
@@ -2846,7 +2846,7 @@ bool CMovieBrowser::addFile(CFile &file, int dirItNr)
|
||||
|
||||
movieInfo.file = file;
|
||||
if(!m_movieInfo.loadMovieInfo(&movieInfo)) {
|
||||
movieInfo.channelName = string(g_Locale->getText(LOCALE_MOVIEPLAYER_HEAD));
|
||||
movieInfo.channelName = std::string(g_Locale->getText(LOCALE_MOVIEPLAYER_HEAD));
|
||||
movieInfo.epgTitle = file.getFileName();
|
||||
}
|
||||
movieInfo.dirItNr = dirItNr;
|
||||
|
Reference in New Issue
Block a user