Closed
Bug 1208945
Opened 9 years ago
Closed 9 years ago
Rename Color::{To,From}ARGB() so they aren't easily confused with {To,From}ABGR()
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla44
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: n.nethercote, Assigned: n.nethercote)
Details
Attachments
(1 file)
2.81 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
(Spun off from bug 1208283.)
Color::{To,From}ARGB() are really similar names to Color::{To,From}ABGR().
While refactoring I was scared I would type the wrong one. So I suggest giving
the latter pair, which are uncommon, a different name.
![]() |
Assignee | |
Comment 1•9 years ago
|
||
Attachment #8666580 -
Flags: review?(bas)
![]() |
||
Comment 2•9 years ago
|
||
Maybe "RarelyUsed" instead of uncommon? Or perhaps better, mention that this is to do with endianness with something like {To,From}ABGRForBigEndian(). If the appropriate endianness defines were available it might even be better to ifdef out these functions for little endian platforms.
![]() |
Assignee | |
Comment 3•9 years ago
|
||
As long as the name is significantly different to {To,From}ARGB() I don't mind what it is. I'm happy to let Bas bikeshed it in his review.
Updated•9 years ago
|
Attachment #8666580 -
Flags: review?(bas) → review+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in
before you can comment on or make changes to this bug.
Description
•