Closed
Bug 935089
Opened 11 years ago
Closed 11 years ago
Array util methods should support mozilla::Array
Categories
(Core :: MFBT, defect)
Core
MFBT
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: jchen, Assigned: jchen)
References
Details
Attachments
(1 file, 1 obsolete file)
4.78 KB,
patch
|
jchen
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•11 years ago
|
||
This patch makes ArrayLength, ArrayEnd, and PodArrayZero accept mozilla::Array as arguments. A test had to be changed to avoid a name conflict.
Attachment #827508 -
Flags: review?(jwalden+bmo)
Comment 2•11 years ago
|
||
Comment on attachment 827508 [details] [diff] [review] Make ArrayLength, ArrayEnd, and PodArrayZero accept mozilla::Array argument (v1) Review of attachment 827508 [details] [diff] [review]: ----------------------------------------------------------------- ::: xpcom/tests/TestObserverArray.cpp @@ +8,5 @@ > #include "nsTObserverArray.h" > > using namespace mozilla; > > +typedef nsTObserverArray<int> Array_t; IntArray seems preferable to _t naming. (I think type names ending with _t might even be reserved in C11 or C++11, can't remember for sure.)
Attachment #827508 -
Flags: review?(jwalden+bmo) → review+
Assignee | ||
Comment 3•11 years ago
|
||
(In reply to Jeff Walden [:Waldo] (remove +bmo to email) from comment #2) > Comment on attachment 827508 [details] [diff] [review] > Make ArrayLength, ArrayEnd, and PodArrayZero accept mozilla::Array argument > (v1) > > Review of attachment 827508 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: xpcom/tests/TestObserverArray.cpp > @@ +8,5 @@ > > #include "nsTObserverArray.h" > > > > using namespace mozilla; > > > > +typedef nsTObserverArray<int> Array_t; > > IntArray seems preferable to _t naming. (I think type names ending with _t > might even be reserved in C11 or C++11, can't remember for sure.) Yeah I like IntArray. Pushed to https://hg.mozilla.org/integration/mozilla-inbound/rev/e70c1287741e
Attachment #827508 -
Attachment is obsolete: true
Attachment #831103 -
Flags: review+
Comment 4•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e70c1287741e
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
You need to log in
before you can comment on or make changes to this bug.
Description
•