diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-30 02:14:12 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-30 02:14:12 +0000 |
commit | 5bd65b97a510f2a354da5d389c74e644709f6d61 (patch) | |
tree | b3f327df2b953a905354cc942c94d48cd6d78a6c /chrome/browser/autofill/field_types.h | |
parent | cfe7f8a1dc12bea6799a4cd9df87c363629b9e8a (diff) | |
download | chromium_src-5bd65b97a510f2a354da5d389c74e644709f6d61.zip chromium_src-5bd65b97a510f2a354da5d389c74e644709f6d61.tar.gz chromium_src-5bd65b97a510f2a354da5d389c74e644709f6d61.tar.bz2 |
autofill: Remove unnecessary "typedef enum ".
Example:
typedef enum _Foo {
...
} Foo;
This is not necessary in C++, because differently from C, we can use _Foo all around without having to write enum _Foo everywhere, so the typedef here is not necessary.
BUG=None
TEST=None
R=isherman@chromium.org
Review URL: http://codereview.chromium.org/6902192
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83654 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/field_types.h')
-rw-r--r-- | chrome/browser/autofill/field_types.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/autofill/field_types.h b/chrome/browser/autofill/field_types.h index 011116f..ca02dff 100644 --- a/chrome/browser/autofill/field_types.h +++ b/chrome/browser/autofill/field_types.h @@ -8,11 +8,11 @@ #include <set> -typedef enum _AddressType { +enum AddressType { kGenericAddress = 0, kBillingAddress, kShippingAddress -} AddressType; +}; // NOTE: This list MUST not be modified. The server aggregates and stores these // types over several versions, so we must remain fully compatible with the @@ -20,7 +20,7 @@ typedef enum _AddressType { // up to date with the Autofill server list. // // This is the list of all valid field types. -typedef enum _FieldType { +enum AutofillFieldType { // Server indication that it has no data for the requested field. NO_SERVER_DATA = 0, // Client indication that the text entered did not match anything in the @@ -85,7 +85,7 @@ typedef enum _FieldType { // No new types can be added. MAX_VALID_FIELD_TYPE = 61, -} AutofillFieldType; +}; typedef std::set<AutofillFieldType> FieldTypeSet; |