[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
Mon Jun 6 17:13:08 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=62168
--- Comment #1 from asharif.tools at gmail.com 2011-06-06 17:13:08 PST ---
Index: Element.cpp
===================================================================
--- Element.cpp (revision 87771)
+++ Element.cpp (working copy)
@@ -1095,7 +1095,7 @@
{
// Ref currentStyle in case it would otherwise be deleted when setRenderStyle() is called.
RefPtr<RenderStyle> currentStyle(renderStyle());
- bool hasParentStyle = parentNodeForRenderingAndStyle() ? parentNodeForRenderingAndStyle()->renderStyle() : false;
+ bool hasParentStyle = parentNodeForRenderingAndStyle() ? (parentNodeForRenderingAndStyle()->renderStyle()? true:false) : false;
bool hasDirectAdjacentRules = currentStyle && currentStyle->childrenAffectedByDirectAdjacentRules();
bool hasIndirectAdjacentRules = currentStyle && currentStyle->childrenAffectedByForwardPositionalRules();
Seems to fix the warning.
--
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