summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2018-10-21 22:40:07 +0200
committerCaolán McNamara <caolanm@redhat.com>2018-10-22 09:59:12 +0200
commit7cd65a3141c09111962dfd52a91d738c3f560f04 (patch)
tree55645d59cdb9674d6d7c5fbee4c34aa1bb10533a
parente06afb0c9546ddcde1cedd75f59001396ac6fdf2 (diff)
tdf#120703 (PVS): Recurring check.
V571 The 'mpViewShell' condition was already verified in line 887. Change-Id: I90e8beee2f66936122824e403ae82aebceb3adc4 Reviewed-on: https://gerrit.libreoffice.org/62155 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sd/source/ui/view/sdwindow.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx
index 74fa4fbc2ef0..9519cc7f334a 100644
--- a/sd/source/ui/view/sdwindow.cxx
+++ b/sd/source/ui/view/sdwindow.cxx
@@ -886,8 +886,7 @@ sal_Int8 Window::AcceptDrop( const AcceptDropEvent& rEvt )
if( mpViewShell && !mpViewShell->GetDocSh()->IsReadOnly() )
{
- if( mpViewShell )
- nRet = mpViewShell->AcceptDrop( rEvt, *this, this, SDRPAGE_NOTFOUND, SDRLAYER_NOTFOUND );
+ nRet = mpViewShell->AcceptDrop( rEvt, *this, this, SDRPAGE_NOTFOUND, SDRLAYER_NOTFOUND );
if (mbUseDropScroll && dynamic_cast< OutlineViewShell *>( mpViewShell ) == nullptr)
DropScroll( rEvt.maPosPixel );