[Webkit-unassigned] [Bug 62168] error: converting 'false' to pointer type when compiling with gcc-4.6.0
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Aug 11 16:22:20 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=62168
--- Comment #4 from Adam Barth <abarth at webkit.org> 2011-08-11 16:22:20 PST ---
(From update of attachment 103692)
View in context: https://bugs.webkit.org/attachment.cgi?id=103692&action=review
> Source/WebCore/dom/Element.cpp:1100
> - bool hasParentStyle = parentNodeForRenderingAndStyle() ? parentNodeForRenderingAndStyle()->renderStyle() : false;
> + bool hasParentStyle = parentNodeForRenderingAndStyle() ? (bool) parentNodeForRenderingAndStyle()->renderStyle() : false;
WebKit usually uses c++ style casts, not c-style casts:
static_cast<bool>(...)
--
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