Hello again, hope I do not annoy anyone, with my questions. I have looked deeper in the issue using OpenGrok.
Now the Issue seems pretty clear. We have only the function signatures: file: atkwrapper.hxx 85 AtkObject * atk_object_wrapper_new( 86 const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& rxAccessible, 87 AtkObject* parent = NULL ); And we have the call for the Function just above this one (file:atkwrapper.cxx): AtkObject * atk_object_wrapper_ref( const uno::Reference< accessibility::XAccessible > &rxAccessible, bool create ) { g_return_val_if_fail( rxAccessible.get() != NULL, NULL ); AtkObject *obj = ooo_wrapper_registry_get(rxAccessible); if( obj ) { g_object_ref( obj ); return obj; } if( create ) return atk_object_wrapper_new( rxAccessible ); return NULL; } So this is a bit confusing. Anyone objects if I refactor the above code so we have only one return statement at the end of the function? I think it is annoying and you quickly miss the exitpoints of the function. All the Best Peter On 2020/01/07 21:27:44, Peter Kovacs <peter.kov...@posteo.de> wrote: > Hello all, > > I have build OpenOffice from trunc with debug options. When started I > get an Assertion Error. > Error: assertion failed! > From File /home/legine/AOO/main/vcl/unx/gtk/a11y/atkwrapper.cxx at Line > 874 > Abort ? (Yes=abort / No=ignore / Cancel=core dump) > > Code in Question is: > /* gail_focus_tracker remembers the focused object at the first > * parent in the hierarchy that is a Gtk+ widget, but at the > time the > * event gets processed (at idle), it may be too late to > create the > * hierarchy, so doing it now .. > */ > uno::Reference< accessibility::XAccessible > xParent( > xContext->getAccessibleParent() ); > > /* The top-level objects should never be of this class */ > OSL_ASSERT( xParent.is() ); > > > The Wrapper is not an object right? Only a collection of functions or do > I read this wrong? > > Thx for some help. > > All the Best > Peter > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org > For additional commands, e-mail: dev-h...@openoffice.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org