Kaydet (Commit) 7b6f9b6d authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1441483 try and silence bogus Using invalid iterator

Change-Id: I312cef93a0cef48207a3b7f5165dd48d702de3c6
Reviewed-on: https://gerrit.libreoffice.org/63810
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst e796f0b4
......@@ -737,8 +737,7 @@ bool ChildrenManagerImpl::ReplaceChild (
auto I = std::find_if(maVisibleChildren.begin(), maVisibleChildren.end(),
[&pCurrentChild](const ChildDescriptor& rChild) { return rChild.GetAccessibleShape() == pCurrentChild; });
bool bResult = I != maVisibleChildren.end();
if (bResult)
if (I != maVisibleChildren.end())
{
// Dispose the current child and send an event about its deletion.
pCurrentChild->dispose();
......@@ -754,12 +753,13 @@ bool ChildrenManagerImpl::ReplaceChild (
AccessibleEventId::CHILD,
uno::makeAny (I->mxAccessibleShape),
uno::Any());
return true;
}
// When not found among the visible children we have to search the list
// of accessible shapes. This is not yet implemented.
return bResult;
return false;
}
// Add the impl method for IAccessibleParent interface
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment