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

NEW
Unassigned

Status

()

4 years ago
4 years ago

People

(Reporter: jesup, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
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(); }
You need to log in before you can comment on or make changes to this bug.