mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-03 02:41:21 +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 ;-)
This commit is contained in:
committed by
Jacek Jendrzej
parent
17ea8e7d63
commit
0d9139054a
@@ -28,8 +28,6 @@
|
||||
#include "widget/menue.h"
|
||||
#include <gui/widget/hintbox.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
struct devtool_s {
|
||||
std::string fmt;
|
||||
std::string fsck;
|
||||
@@ -64,7 +62,7 @@ class CHDDMenuHandler : public CMenuTarget
|
||||
bool mounted;
|
||||
};
|
||||
std::vector<hdd_s> hdd_list;
|
||||
struct cmp_hdd_by_name: public binary_function <const struct hdd_s, const struct hdd_s, bool>
|
||||
struct cmp_hdd_by_name: public std::binary_function <const struct hdd_s, const struct hdd_s, bool>
|
||||
{
|
||||
bool operator() (const struct hdd_s &c1, const struct hdd_s &c2)
|
||||
{
|
||||
|
Reference in New Issue
Block a user