Closed Bug 497880 Opened 15 years ago Closed 15 years ago

Replace XPIDL's use of anonymous enum's with static const

Categories

(Core :: XPCOM, defect)

defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 262000

People

(Reporter: dbradley, Unassigned)

Details

In Bug 352485 someone mentioned that the anonymous enums cause warnings when used in some cases. Give that Bug 8781 is wontfix I suggest that these now become static const declarations. The only reason enum's were used was that they weren't widely supported at the time. Should be simple tweak to the XPIDL C++ generator.
I would prefer the solution suggested in bug 262000. Then the compiler warning will flag a programming error.
Ugh, if forgot about that bug. Duping to bug 262000. static const is an easier fix from the standpoint of XPIDL code, but the ideal fix would be anonymous enums.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.