diff options
Diffstat (limited to 'svl/source/passwordcontainer/passwordcontainer.cxx')
-rw-r--r-- | svl/source/passwordcontainer/passwordcontainer.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svl/source/passwordcontainer/passwordcontainer.cxx b/svl/source/passwordcontainer/passwordcontainer.cxx index a216b1e87af6..31175d156b3d 100644 --- a/svl/source/passwordcontainer/passwordcontainer.cxx +++ b/svl/source/passwordcontainer/passwordcontainer.cxx @@ -927,7 +927,7 @@ void SAL_CALL PasswordContainer::remove( const OUString& aURL, const OUString& a // the iterator will not be used any more so it can be removed directly aIter->second.erase( aNPIter ); - if( aIter->second.begin() == aIter->second.end() ) + if( aIter->second.empty() ) m_aContainer.erase( aIter ); return; @@ -973,7 +973,7 @@ void SAL_CALL PasswordContainer::removePersistent( const OUString& aURL, const O if( !aNPIter->HasPasswords( MEMORY_RECORD ) ) aIter->second.erase( aNPIter ); - if( aIter->second.begin() == aIter->second.end() ) + if( aIter->second.empty() ) m_aContainer.erase( aIter ); return; @@ -1012,7 +1012,7 @@ void SAL_CALL PasswordContainer::removeAllPersistent() throw(RuntimeException, s ++aNPIter; } - if( aIter->second.begin() == aIter->second.end() ) + if( aIter->second.empty() ) { PassMap::iterator aIterToDelete( aIter ); ++aIter; |