[Webkit-unassigned] [Bug 57337] Fix compilation with Solaris 10/Sun Studio 12 CC : types must match on ?:

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 29 13:22:15 PDT 2011


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





--- Comment #5 from Ben Taylor <bentaylor.solx86 at gmail.com>  2011-03-29 13:22:15 PST ---
(In reply to comment #4)
> (From update of attachment 87320 [details])
> We don't use c-style casts in WebKit.  static_cast is your friend. :)  How is style() not a RenderStyle?

The compiler reports this as a mismatch.  I can recode as a static_cast, or do as Thiago did in his original patch and say:

+    if (m_renderer)
+        return m_renderer->style();
+    return nonRendererRenderStyle();

I follow your guidance.

-- 
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