[Webkit-unassigned] [Bug 75695] [EFL] Add IntRect(const Eina_Rectangle*) constructor.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 10 06:51:55 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=75695





--- Comment #2 from Andreas Kling <kling at webkit.org>  2012-01-10 06:51:55 PST ---
(From update of attachment 121840)
View in context: https://bugs.webkit.org/attachment.cgi?id=121840&action=review

> Source/WebCore/platform/graphics/IntRect.h:192
>      explicit IntRect(const Eina_Rectangle&);
> +    explicit IntRect(const Eina_Rectangle*);

This looks like a bad idea to me, it would be better to update call sites to dereference the Eina_Rectangle* so they can go through the Eina_Rectangle& constructor, e.g:
WebCore::IntRect rect(*area);
The problem with either approach is that you have no handling of null Eina_Rectangle*, but I suppose that's something for the call sites to know about.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list