summaryrefslogtreecommitdiffstats
path: root/tools/aapt
diff options
context:
space:
mode:
authorKoushik Dutta <koushd@gmail.com>2013-07-10 11:30:40 -0700
committerKoushik Dutta <koushd@gmail.com>2013-07-10 11:30:40 -0700
commitc2ef581d8a77ef36e02e98cca5e3baf625f9cfb3 (patch)
tree76d24c21c260abb20d56b5d6e77af13d1afd1822 /tools/aapt
parent34b32f417964496d14d043368eac521159247ea7 (diff)
downloadframeworks_base-c2ef581d8a77ef36e02e98cca5e3baf625f9cfb3.zip
frameworks_base-c2ef581d8a77ef36e02e98cca5e3baf625f9cfb3.tar.gz
frameworks_base-c2ef581d8a77ef36e02e98cca5e3baf625f9cfb3.tar.bz2
Fixes for clang:
PackageInfo is a class, not a struct. String16 is contained in the android namespace. Do not namespace prefix it within the android namespace. Explicitly specify which std classes are necessary to prevent ambiguous type errors. (map, set) Change-Id: I0d01477a976e770821ebae8847f8d11b132a15d6
Diffstat (limited to 'tools/aapt')
-rw-r--r--tools/aapt/ResourceIdCache.cpp2
-rw-r--r--tools/aapt/ResourceIdCache.h2
-rw-r--r--tools/aapt/ResourceTable.h3
3 files changed, 4 insertions, 3 deletions
diff --git a/tools/aapt/ResourceIdCache.cpp b/tools/aapt/ResourceIdCache.cpp
index e03f4f6..72b1c61 100644
--- a/tools/aapt/ResourceIdCache.cpp
+++ b/tools/aapt/ResourceIdCache.cpp
@@ -9,7 +9,7 @@
#include <utils/Log.h>
#include "ResourceIdCache.h"
#include <map>
-using namespace std;
+using std::map;
static size_t mHits = 0;
diff --git a/tools/aapt/ResourceIdCache.h b/tools/aapt/ResourceIdCache.h
index 65f7781..40367c2 100644
--- a/tools/aapt/ResourceIdCache.h
+++ b/tools/aapt/ResourceIdCache.h
@@ -7,7 +7,7 @@
#define RESOURCE_ID_CACHE_H
namespace android {
-class android::String16;
+class String16;
class ResourceIdCache {
public:
diff --git a/tools/aapt/ResourceTable.h b/tools/aapt/ResourceTable.h
index a3e0666..319f92d 100644
--- a/tools/aapt/ResourceTable.h
+++ b/tools/aapt/ResourceTable.h
@@ -13,7 +13,8 @@
#include <set>
#include <map>
-using namespace std;
+using std::map;
+using std::set;
class XMLNode;
class ResourceTable;