Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1eaa9ed3 authored by Christopher Wiley's avatar Christopher Wiley
Browse files

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
parent 582d1668
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -7,7 +7,9 @@
#include <stdarg.h>
#include <stdio.h>

using namespace std;
using std::set;
using std::string;
using std::vector;

class Type;

+2 −1
Original line number Diff line number Diff line
@@ -5,7 +5,8 @@
#include <string>
#include <vector>

using namespace std;
using std::string;
using std::vector;

class Type
{
+4 −1
Original line number Diff line number Diff line
@@ -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)
+2 −1
Original line number Diff line number Diff line
@@ -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);
+2 −1
Original line number Diff line number Diff line
@@ -5,7 +5,8 @@
#include <string>
#include <vector>

using namespace std;
using std::string;
using std::vector;

enum {
    COMPILE_AIDL,
Loading