Remove "using namespace std" from MiscUtils.h.

develop
Alexander Gavrilov 2013-10-08 17:41:49 +04:00
parent 6852adbd91
commit a273327c6a
9 changed files with 11 additions and 2 deletions

@ -32,7 +32,9 @@ distribution.
#include <sstream> #include <sstream>
#include <cstdio> #include <cstdio>
using namespace std; using std::ostream;
using std::stringstream;
using std::endl;
template <typename T> template <typename T>
void print_bits ( T val, ostream& out ) void print_bits ( T val, ostream& out )

@ -44,6 +44,7 @@
using std::string; using std::string;
using std::endl; using std::endl;
using std::vector;
using namespace DFHack; using namespace DFHack;
using namespace df::enums; using namespace df::enums;
using df::global::ui; using df::global::ui;

@ -36,6 +36,7 @@
#include "TileTypes.h" #include "TileTypes.h"
#include "df/job_item.h" #include "df/job_item.h"
using namespace std;
using std::map; using std::map;
using std::string; using std::string;
using std::vector; using std::vector;

@ -67,6 +67,7 @@
#include <df/training_assignment.h> #include <df/training_assignment.h>
#include <df/general_ref_contains_itemst.h> #include <df/general_ref_contains_itemst.h>
using namespace std;
using std::string; using std::string;
using std::endl; using std::endl;
using namespace DFHack; using namespace DFHack;

@ -28,6 +28,7 @@
#include "df/misc_trait_type.h" #include "df/misc_trait_type.h"
#include "df/unit_misc_trait.h" #include "df/unit_misc_trait.h"
using namespace std;
using std::set; using std::set;
using std::vector; using std::vector;
using std::string; using std::string;

@ -113,6 +113,7 @@
using std::vector; using std::vector;
using std::string; using std::string;
using std::stack; using std::stack;
using std::set;
using namespace DFHack; using namespace DFHack;
using namespace df::enums; using namespace df::enums;

@ -61,6 +61,7 @@
#include <stdlib.h> #include <stdlib.h>
using std::set;
using std::vector; using std::vector;
using std::string; using std::string;
using std::endl; using std::endl;

@ -14,7 +14,7 @@
#include "df/enabler.h" #include "df/enabler.h"
using namespace std;
using std::string; using std::string;
using std::vector; using std::vector;
using std::map; using std::map;

@ -45,6 +45,7 @@
using std::vector; using std::vector;
using std::string; using std::string;
using std::endl; using std::endl;
using std::flush;
using namespace DFHack; using namespace DFHack;
using namespace df::enums; using namespace df::enums;