From: Kenny Root Date: Mon, 25 Jul 2011 19:55:41 +0000 (-0700) Subject: Change ZipFile flags anonymous enum X-Git-Url: https://git.saurik.com/android/aapt.git/commitdiff_plain/0069ad709cb2a8e191066da5010b2d1e182eb79f 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 --- diff --git a/ZipFile.h b/ZipFile.h index dbbd072..7877550 100644 --- a/ZipFile.h +++ b/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