[Webkit-unassigned] [Bug 25413] [GTK] Please expose the level of headings.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Oct 17 10:47:59 PDT 2009


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





--- Comment #5 from Xan Lopez <xan.lopez at gmail.com>  2009-10-17 10:47:59 PDT ---
(In reply to comment #4)
> Thanks for the feedback, Xan!
> 
> Notes (mostly to myself so that I remember them after I get some sleep. :-) )
> 
> > WebKit style guide tells us to use C++ style castings, so you need to do
> > something like:
> > 
> > AtkAttribute* attribute =
> > static_cast<AtkAttribute>(g_malloc(sizeof(AtkAttribute)));
> 
> When I try that I get an error:
> 
> ~~~~~~
> WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp: In function
> ‘AtkAttributeSet* addAttributeToSet(AtkAttributeSet*, const char*, const
> char*)’:
> WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:179: error: no
> matching function for call to ‘_AtkAttribute::_AtkAttribute(void*)’
> ~~~~~~
> 
> But I'm new to C++. I bet if I research it and think about it, it'll all become
> clear. I'll do that "tomorrow."

I'm sorry, there was a missing '*' in the static_cast, it should read
static_cast<AtkAttribute*> :)

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