Closed Bug 576367 Opened 14 years ago Closed 14 years ago

Add include before use of nsIAccessible in accessible/src/base/nsAccCache.h

Categories

(Core :: Disability Access APIs, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sharparrow1, Assigned: sharparrow1)

Details

(Whiteboard: Please checkin "Patch for commit" (addresses additional review comment))

Attachments

(2 files)

Attached patch PatchSplinter Review
Patch attached.  Necessary for building with clang because clang is stricter about making sure nsIAccessible is defined before implicitly converting an nsIAccessible* to an nsISupports* in CycleCollectorTraverseCacheEntry.
Attachment #455543 - Flags: review?(surkov.alexander)
Hmmm.  I'm pretty sure gcc gives an error for static_cast from/to an incomplete class; it certainly should be.  Or is it just a warning?
gcc is relatively forgiving about what it accepts in template functions; see http://clang.llvm.org/compatibility.html#undep_incomplete .
Oh, I missed that it was in a template.  Makes sense.
Comment on attachment 455543 [details] [diff] [review]
Patch


> #include "nsRefPtrHashtable.h"
> #include "nsCycleCollectionParticipant.h"
>-
>-class nsIAccessible;
>+#include "nsIAccessible.h"

nit: please move this include before "nsRefPtr..." inlcude.
Attachment #455543 - Flags: review?(surkov.alexander) → review+
Attached patch Patch for commitSplinter Review
Keywords: checkin-needed
Whiteboard: Please checkin "Patch for commit" (addresses additional review comment)
http://hg.mozilla.org/mozilla-central/rev/77667930fda5
Status: NEW → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: