Open Bug 1141423 Opened 9 years ago Updated 2 years ago

Fix return types for Count() and Length() of various array-based classes in XPCOM

Categories

(Core :: XPCOM, defect)

defect

Tracking

()

People

(Reporter: jesup, Unassigned)

Details

Some users of nsTArray<> (like nsCOMArray_base) use uint32_t for Count() and Length(), but feed into them nsTArray's Count() and Length() (which are typically size_t).  This then ripples through our source.

nsCOMArray.h:
  // nsTArray-compatible version
  uint32_t Length() const { return mArray.Length(); }
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.