diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2018-10-21 22:40:07 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-10-22 09:59:12 +0200 |
commit | 7cd65a3141c09111962dfd52a91d738c3f560f04 (patch) | |
tree | 55645d59cdb9674d6d7c5fbee4c34aa1bb10533a /sd/source/ui | |
parent | e06afb0c9546ddcde1cedd75f59001396ac6fdf2 (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>
Diffstat (limited to 'sd/source/ui')
-rw-r--r-- | sd/source/ui/view/sdwindow.cxx | 3 |
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 ); |