Kaydet (Commit) 0845cdbd authored tarafından Michaël Lefèvre's avatar Michaël Lefèvre Kaydeden (comit) Michael Stahl

CppCheck cleaning : redundant checking of elemet existence

Change-Id: I141b488b0067f8c6eaa54bdc9d42b4a44cfe3907
Reviewed-on: https://gerrit.libreoffice.org/14849Tested-by: 's avatarMichael Stahl <mstahl@redhat.com>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst ee11e221
......@@ -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 );
}
}
......
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