remove 'using namespace mozilla' from js/src

RESOLVED FIXED in mozilla33

Status

()

defect
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: luke, Assigned: luke)

Tracking

unspecified
mozilla33
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Assignee

Description

5 years ago
'using namespace mozilla' causes ambiguity errors for common names like 'Vector', requiring explicit qualification with js:: to fix.  (If you've ever gotten one of these mystery ambiguities in a .cpp file even though that .cpp doesn't contain 'using namespace mozilla', it's because of unified builds.)

We should probably add this as a rule to the style guide.
Attachment #8444786 - Flags: review?(jwalden+bmo)
Attachment #8444786 - Flags: review?(jwalden+bmo) → review+
https://hg.mozilla.org/mozilla-central/rev/df60afd3e3a7
https://hg.mozilla.org/mozilla-central/rev/d2983539a941
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
You need to log in before you can comment on or make changes to this bug.