diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-04-17 21:28:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-04-18 09:32:39 +0100 |
commit | 7405d9d15738ea2357f95ff6a0f864a17f3dc0e8 (patch) | |
tree | 2f889c4ef2dd8cb69e6dc8f8eea345054495ca42 /svx/source/accessibility | |
parent | 60c8704cf42ed24f3b8f3e698fd3072b82270af5 (diff) |
reorg to silence coverity#1358586 Using invalid iterator
Change-Id: If93cead2f4caa203b2d1a3e9c787625e6386dc3e
Diffstat (limited to 'svx/source/accessibility')
-rw-r--r-- | svx/source/accessibility/ChildrenManagerImpl.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/svx/source/accessibility/ChildrenManagerImpl.cxx b/svx/source/accessibility/ChildrenManagerImpl.cxx index 35c11e4cb294..5e5e6f3d8088 100644 --- a/svx/source/accessibility/ChildrenManagerImpl.cxx +++ b/svx/source/accessibility/ChildrenManagerImpl.cxx @@ -367,17 +367,17 @@ void ChildrenManagerImpl::RemoveNonVisibleChildren ( } } - void ChildrenManagerImpl::MergeAccessibilityInformation ( ChildDescriptorListType& raNewChildList) { - ChildDescriptorListType::iterator aOldChildDescriptor; + ChildDescriptorListType::const_iterator aStartVisibleChildren = maVisibleChildren.begin(); ChildDescriptorListType::const_iterator aEndVisibleChildren = maVisibleChildren.end(); ChildDescriptorListType::const_iterator aEnd = raNewChildList.end(); for (ChildDescriptorListType::iterator I=raNewChildList.begin(); I != aEnd; ++I) { - aOldChildDescriptor = ::std::find (maVisibleChildren.begin(), maVisibleChildren.end(), *I); + ChildDescriptorListType::const_iterator aOldChildDescriptor = + std::find(aStartVisibleChildren, aEndVisibleChildren, *I); // Copy accessible shape if that exists in the old descriptor. bool bRegistrationIsNecessary = true; @@ -393,7 +393,6 @@ void ChildrenManagerImpl::MergeAccessibilityInformation ( } } - void ChildrenManagerImpl::SendVisibleAreaEvents ( ChildDescriptorListType& raNewChildList) { |