AccessibleFocusManager::~AccessibleFocusManager()
{ // copy member to stack, then drop it - otherwise will get use-after-free // from AccessibleObject::disposing(), it will call ~Reference *twice* autoconst temp(std::move(maFocusableObjects));
(void) temp;
m_isInDtor = true;
}
if (iObject != maFocusableObjects.end())
maFocusableObjects.erase(iObject); else
{
OSL_ASSERT(m_isInDtor); // in dtor, was removed already
}
}
void AccessibleFocusManager::FocusObject ( const ::rtl::Reference<AccessibleObject>& rpObject)
{ // Remove the focus of any of the other focusable objects. for (auto& rxObject : maFocusableObjects)
{ if (rxObject!=rpObject)
rxObject->SetIsFocused(false);
}
if (rpObject.is())
rpObject->SetIsFocused(true);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.