diff options
author | Michaël Lefèvre <lefevre00@yahoo.fr> | 2015-03-12 22:32:54 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-03-13 11:50:51 +0000 |
commit | 0845cdbdaedd7f556c471399c3bbc76d5cafffd2 (patch) | |
tree | d4818d547dad065bd5bcaab958045f8323540782 /sw/source/uibase/app | |
parent | ee11e221d2108212619e1bbe7f029e7d9afdba32 (diff) |
CppCheck cleaning : redundant checking of elemet existence
Change-Id: I141b488b0067f8c6eaa54bdc9d42b4a44cfe3907
Reviewed-on: https://gerrit.libreoffice.org/14849
Tested-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sw/source/uibase/app')
-rw-r--r-- | sw/source/uibase/app/swwait.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/app/swwait.cxx b/sw/source/uibase/app/swwait.cxx index 01647c62a7bf..10a49d6a98e3 100644 --- a/sw/source/uibase/app/swwait.cxx +++ b/sw/source/uibase/app/swwait.cxx @@ -70,9 +70,8 @@ void SwWait::LeaveWaitAndUnlockDispatcher() { // only unlock dispatchers which had been locked SfxDispatcher* pDispatcher = pFrame->GetDispatcher(); - if ( mpLockedDispatchers.find( pDispatcher ) != mpLockedDispatchers.end() ) + if ( mpLockedDispatchers.erase( pDispatcher ) ) { - mpLockedDispatchers.erase( pDispatcher ); pDispatcher->Lock( false ); } } |