Closed
Bug 1657585
Opened 4 years ago
Closed 4 years ago
Use auto rather than repeating the type name in casts in the GC
Categories
(Core :: JavaScript: GC, task, P3)
Core
JavaScript: GC
Tracking
()
RESOLVED
FIXED
81 Branch
Tracking | Status | |
---|---|---|
firefox81 | --- | fixed |
People
(Reporter: jonco, Assigned: jonco)
Details
Attachments
(1 file)
As Steve pointed out casts like this duplicate the type name unnecessarily:
JSObject* obj = static_cast<JSObject*>(foo);
And can be replaced with:
auto* obj = static_cast<JSObject*>(foo);
I don't know whether we should make this part of SpiderMonkey style but let's do it in the GC at least.
Assignee | ||
Comment 1•4 years ago
|
||
Pushed by jcoppeard@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d1a0968d487f
Use auto rather than repeating the type name in casts in the GC r=sfink
Comment 3•4 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 4 years ago
status-firefox81:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•