diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-08-28 08:39:26 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-08-28 08:39:26 +0200 |
commit | 9ebcd5ec54ec5d77cf46849f7f00bf915644f6e1 (patch) | |
tree | 2177bc5bdc7b8cdfc27274638ff17561d0e36ae0 /package/source/xstor/ohierarchyholder.cxx | |
parent | 711535f7667345b61b5b29de283894b30b400b18 (diff) |
End iterator might not be const
Change-Id: I95c0999903762e79e606fdae7fd11b1ce79fe8d0
Diffstat (limited to 'package/source/xstor/ohierarchyholder.cxx')
-rw-r--r-- | package/source/xstor/ohierarchyholder.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/package/source/xstor/ohierarchyholder.cxx b/package/source/xstor/ohierarchyholder.cxx index 8edec161063a..bbd54da3a9aa 100644 --- a/package/source/xstor/ohierarchyholder.cxx +++ b/package/source/xstor/ohierarchyholder.cxx @@ -291,8 +291,7 @@ void OHierarchyElement_Impl::RemoveElement( const ::rtl::Reference< OHierarchyEl { ::osl::MutexGuard aGuard( m_aMutex ); OHierarchyElementList_Impl::iterator aIter = m_aChildren.begin(); - const OHierarchyElementList_Impl::const_iterator aEnd = m_aChildren.end(); - while (aIter != aEnd) + while (aIter != m_aChildren.end()) { if (aIter->second == aRef ) aIter = m_aChildren.erase(aIter); |