diff options
author | Noel Grandin <noel@peralex.com> | 2015-06-10 13:51:56 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-06-11 06:48:29 +0000 |
commit | d203948fdb780c7af5777fcc26ad88bac1bd714e (patch) | |
tree | 95458f3a290eed3d9a4ca13f28ec63f50490d7a6 /svl | |
parent | 754ade38ddb2e96187d00f3e621203cea34961fa (diff) |
convert 'it.begin() == it.end()' to 'it.empty()'
Change-Id: I244a9eb6bce6b1c649653ec38ebb9a39f8b4c145
Reviewed-on: https://gerrit.libreoffice.org/16212
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svl')
-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; |