summaryrefslogtreecommitdiffstats
path: root/tools/aapt/ZipFile.h
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2011-07-25 12:55:41 -0700
committerKenny Root <kroot@google.com>2011-07-25 16:49:17 -0700
commitaf2872d1e324ed67b44b4f44e2d83b1f0d985027 (patch)
tree248c7929317a9c0eda33da867be4cef25b8f50c2 /tools/aapt/ZipFile.h
parentb243d5bc7db88396f0da304553687e7a0bccfa3d (diff)
downloadframeworks_base-af2872d1e324ed67b44b4f44e2d83b1f0d985027.zip
frameworks_base-af2872d1e324ed67b44b4f44e2d83b1f0d985027.tar.gz
frameworks_base-af2872d1e324ed67b44b4f44e2d83b1f0d985027.tar.bz2
Change ZipFile flags anonymous enum
The arguments that ZipFile takes were apparently meant to be a typed enum, but the name of the type was taken out because it creates invalid conversion warnings in C++ since this is an invalid use of enum. Just change the typedef enum to an anonymous enum so we get rid of the compiler warnings. It will be implicitly converted to int instead. Change-Id: Ie72c4c235c8f9ee8fd1b795e1010b77c55e983de
Diffstat (limited to 'tools/aapt/ZipFile.h')
-rw-r--r--tools/aapt/ZipFile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/aapt/ZipFile.h b/tools/aapt/ZipFile.h
index dbbd072..7877550 100644
--- a/tools/aapt/ZipFile.h
+++ b/tools/aapt/ZipFile.h
@@ -57,7 +57,7 @@ public:
/*
* Open a new or existing archive.
*/
- typedef enum {
+ enum {
kOpenReadOnly = 0x01,
kOpenReadWrite = 0x02,
kOpenCreate = 0x04, // create if it doesn't exist