Do not merge namespaces

It is good practice to not include the whole std:: namespace into
the global namespace.  This is doubly true in headers.

TEST=aidl compiles

Change-Id: I910ca8082f61cce4f23f8564b8a12c2828b75b3c
This commit is contained in:
Christopher Wiley
2015-08-24 14:07:32 -07:00
parent 582d16681b
commit 1eaa9ed334
7 changed files with 19 additions and 7 deletions

View File

@@ -7,7 +7,9 @@
#include <stdarg.h>
#include <stdio.h>
using namespace std;
using std::set;
using std::string;
using std::vector;
class Type;

View File

@@ -5,7 +5,8 @@
#include <string>
#include <vector>
using namespace std;
using std::string;
using std::vector;
class Type
{

View File

@@ -31,7 +31,10 @@
#define MIN_USER_SET_METHOD_ID 0
#define MAX_USER_SET_METHOD_ID 16777214
using namespace std;
using std::map;
using std::set;
using std::string;
using std::vector;
static void
test_document(document_item_type* d)

View File

@@ -6,7 +6,8 @@
#include <string>
using namespace std;
using std::string;
using std::vector;
int generate_java(const string& filename, const string& originalSrc,
interface_type* iface);

View File

@@ -5,7 +5,8 @@
#include <string>
#include <vector>
using namespace std;
using std::string;
using std::vector;
enum {
COMPILE_AIDL,

View File

@@ -3,7 +3,8 @@
const bool VERBOSE = false;
using namespace std;
using std::string;
using std::vector;
struct Answer {
const char* argv[8];

View File

@@ -6,7 +6,10 @@
#if __cplusplus
#include <vector>
#include <string>
using namespace std;
using std::string;
using std::vector;
extern "C" {
#endif