Closed Bug 1442295 Opened 7 years ago Closed 7 years ago

Add a few missing includes

Categories

(Core :: XPCOM, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla60
Tracking Status
firefox60 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

References

Details

Attachments

(1 file)

As part of bug 1438688, I am generating a very simple .cpp file with only a few includes. This revealed two missing includes: nsTArray.h needs mozalloc.h for moz_xmalloc and nsTStringRepr.h needs fallible.h for fallible.
Attachment #8955261 - Flags: review?(erahm)
Comment on attachment 8955261 [details] [diff] [review] Add two missing includes in XPCOM. Review of attachment 8955261 [details] [diff] [review]: ----------------------------------------------------------------- ::: xpcom/ds/nsTArray.h @@ +17,5 @@ > #include "mozilla/fallible.h" > #include "mozilla/MathAlgorithms.h" > #include "mozilla/MemoryReporting.h" > #include "mozilla/Move.h" > +#include "mozilla/mozalloc.h" I guess this should be before 'Move'
Attachment #8955261 - Flags: review?(erahm) → review+
(In reply to Eric Rahm [:erahm] (please no mozreview requests) from comment #2) > > #include "mozilla/Move.h" > > +#include "mozilla/mozalloc.h" > > I guess this should be before 'Move' Why is that? Isn't it alphabetical?
(In reply to Andrew McCreight [:mccr8] from comment #3) > (In reply to Eric Rahm [:erahm] (please no mozreview requests) from comment > #2) > > > #include "mozilla/Move.h" > > > +#include "mozilla/mozalloc.h" > > > > I guess this should be before 'Move' > > Why is that? Isn't it alphabetical? Oh right that's a z not a v.
Keywords: checkin-needed
This builds fine on OSX, but I'm seeing some weirdness on Linux with my other patches, so I want to make sure it builds there, too.
Keywords: checkin-needed
Linux was fine. The build problem I was seeing is unrelated to this patch.
Keywords: checkin-needed
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: