The last few instanceOf uses?

This commit is contained in:
2025-08-09 06:09:12 -04:00
parent 31531b6cba
commit 0e6984196b
4 changed files with 12 additions and 12 deletions

View File

@ -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)",