summaryrefslogtreecommitdiffstats
path: root/tools
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
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')
-rw-r--r--tools/aapt/ResourceIdCache.cpp2
-rw-r--r--tools/aapt/ResourceIdCache.h2
-rw-r--r--tools/aapt/ResourceTable.h3
-rw-r--r--tools/obbtool/Main.cpp4
4 files changed, 6 insertions, 5 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;
diff --git a/tools/obbtool/Main.cpp b/tools/obbtool/Main.cpp
index b2152e8..64808c0 100644
--- a/tools/obbtool/Main.cpp
+++ b/tools/obbtool/Main.cpp
@@ -89,7 +89,7 @@ void usage(void)
" Prints the OBB signature information of a file.\n\n", gProgName);
}
-void doAdd(const char* filename, struct PackageInfo* info) {
+void doAdd(const char* filename, PackageInfo* info) {
ObbFile *obb = new ObbFile();
if (obb->readFrom(filename)) {
fprintf(stderr, "ERROR: %s: OBB signature already present\n", filename);
@@ -182,7 +182,7 @@ int main(int argc, char* const argv[])
{
int opt;
int option_index = 0;
- struct PackageInfo package_info;
+ PackageInfo package_info;
int result = 1; // pessimistically assume an error.