Kaydet (Commit) 9ebcd5ec authored tarafından Julien Nabet's avatar Julien Nabet

End iterator might not be const

Change-Id: I95c0999903762e79e606fdae7fd11b1ce79fe8d0
üst 711535f7
...@@ -291,8 +291,7 @@ void OHierarchyElement_Impl::RemoveElement( const ::rtl::Reference< OHierarchyEl ...@@ -291,8 +291,7 @@ void OHierarchyElement_Impl::RemoveElement( const ::rtl::Reference< OHierarchyEl
{ {
::osl::MutexGuard aGuard( m_aMutex ); ::osl::MutexGuard aGuard( m_aMutex );
OHierarchyElementList_Impl::iterator aIter = m_aChildren.begin(); OHierarchyElementList_Impl::iterator aIter = m_aChildren.begin();
const OHierarchyElementList_Impl::const_iterator aEnd = m_aChildren.end(); while (aIter != m_aChildren.end())
while (aIter != aEnd)
{ {
if (aIter->second == aRef ) if (aIter->second == aRef )
aIter = m_aChildren.erase(aIter); aIter = m_aChildren.erase(aIter);
......
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