mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +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
@@ -531,7 +531,7 @@ bool CExtUpdate::readConfig(const std::string & line)
|
||||
|
||||
bool CExtUpdate::isBlacklistEntry(const std::string & file)
|
||||
{
|
||||
for(vector<std::string>::iterator it = blackList.begin(); it != blackList.end(); ++it) {
|
||||
for(std::vector<std::string>::iterator it = blackList.begin(); it != blackList.end(); ++it) {
|
||||
if (*it == file) {
|
||||
DBG_MSG("BlacklistEntry %s\n", (*it).c_str());
|
||||
WRITE_UPDATE_LOG("BlacklistEntry: %s\n", (*it).c_str());
|
||||
@@ -559,7 +559,7 @@ bool CExtUpdate::readBackupList(const std::string & dstPath)
|
||||
{
|
||||
char buf[PATH_MAX];
|
||||
static struct stat FileInfo;
|
||||
vector<std::string>::iterator it;
|
||||
std::vector<std::string>::iterator it;
|
||||
|
||||
f1 = fopen(backupList.c_str(), "r");
|
||||
if (f1 == NULL) {
|
||||
|
Reference in New Issue
Block a user