Closed
Bug 1337953
Opened 8 years ago
Closed 5 years ago
Make nsDeque "a bit more" typesafe
Categories
(Core :: XPCOM, defect, P3)
Tracking
()
RESOLVED
FIXED
mozilla79
Tracking | Status | |
---|---|---|
firefox79 | --- | fixed |
People
(Reporter: mozbugz, Assigned: fronkc1)
References
Details
Attachments
(1 file)
nsDeque only deals with void* and forces callers to perform casts.
It should be trivial to make nsDeque templated on T* at zero extra cost, to provide just a bit more type safety and ease of use.
Some code will probably still explicitly use void*, and abuse that to store numbers. If it's easy enough to handle PODs, or even trivially-copyable types, I'll allow them; otherwise another bug can deal with it later on.
![]() |
||
Updated•8 years ago
|
Priority: -- → P3
Reporter | ||
Comment 1•5 years ago
|
||
(Not enough time for this, de-assigning myself in case someone else wants to work on it.)
Assignee: gsquelart → nobody
Assignee | ||
Comment 2•5 years ago
|
||
Updated•5 years ago
|
Assignee: nobody → fronkc1
Status: NEW → ASSIGNED
Pushed by cbrindusan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5614bcd268d1
Make nsDeque templated on pointer type r=froydnj
Comment 4•5 years ago
|
||
Backed outfor bustage at FuzzyLayer.cpp
Backout link: https://hg.mozilla.org/integration/autoland/rev/fe7c13be3ba5f011abd8fe9b0ad1a8176b3f7a93
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=307213207&repo=autoland&lineNumber=17426
Flags: needinfo?(fronkc1)
Assignee | ||
Comment 5•5 years ago
|
||
Submitting a new patch today re-based against latest https://treeherder.mozilla.org/#/jobs?repo=try&revision=3e0d9768fbabf277a57c8ae2a522bb7c87d46598
Flags: needinfo?(fronkc1)
Pushed by nerli@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7c8e1538b925
Make nsDeque templated on pointer type r=froydnj
Comment 7•5 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox79:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
You need to log in
before you can comment on or make changes to this bug.
Description
•