Closed Bug 880255 Opened 11 years ago Closed 11 years ago

Add an implicit conversion from nsIntSize to IntSize

Categories

(Core :: Graphics, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: jrmuizel, Assigned: jrmuizel)

Details

Attachments

(1 file)

      No description provided.
Attachment #759127 - Flags: review?(bgirard)
Comment on attachment 759127 [details] [diff] [review]
Add an implicit conversion from nsIntSize to IntSize

Review of attachment 759127 [details] [diff] [review]:
-----------------------------------------------------------------

r+ as long as operator typecast is well supported by our compiler. I haven't seen it in our code base.
Attachment #759127 - Flags: review?(bgirard) → review+
https://hg.mozilla.org/mozilla-central/rev/4edfa5a589ef
Assignee: nobody → jmuizelaar
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Why implicit?
(In reply to :Ms2ger from comment #3)
> Why implicit?

I don't feel that strongly but since the types are basically the same with different names, I didn't feel there was any value to the reader from explicit conversion.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: