Open Bug 1244238 Opened 4 years ago

nsCOMArray Length() accessor should now return size_t (to match nsTArray change)

Categories

(Core :: XPCOM, defect)

defect
Not set

Tracking

()

Tracking Status
firefox47 --- affected

People

(Reporter: dholbert, Unassigned)

References

Details

nsCOMArray has the following accessor, added in bug 493711:
> 108   // nsTArray-compatible version
> 109   uint32_t Length() const { return mArray.Length(); }

When this was added, nsTArray's own Length() accessor did indeed return uint32_t. However, that changed here in bug 1004098:
http://hg.mozilla.org/mozilla-central/diff/b347f6eb2239/xpcom/glue/nsTArray.h#l1.63

We should update nsCOMArray to keep it this "nsTArray-compatible" function in sync.

(Possibly other accessors & usages of these nsCOMArray APIs need to change as well...)
You need to log in before you can comment on or make changes to this bug.