The last few instanceOf
uses?
This commit is contained in:
@ -66,8 +66,8 @@ void OOFPosRelMgr::calcWidgetRefSize (Widget *widget, Requisition *size)
|
||||
// (Notice also that Widget::sizeRequest has to be called in all
|
||||
// cases.)
|
||||
|
||||
if (widget->instanceOf <OOFAwareWidget>())
|
||||
*size = *((OOFAwareWidget*)widget)->getRequisitionWithoutOOF ();
|
||||
if (auto *oaw= dynamic_cast< OOFAwareWidget * >( widget ))
|
||||
*size = *oaw->getRequisitionWithoutOOF ();
|
||||
|
||||
|
||||
DBG_OBJ_LEAVE_VAL ("%d * (%d + %d)",
|
||||
|
Reference in New Issue
Block a user