diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-09 09:29:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-09 09:43:16 +0100 |
commit | 3697e91ea6f26b75c0bd7a067a8ed9488aa656f3 (patch) | |
tree | 5b2a75dab4c6abc0b92bfde65468920010548940 /sfx2 | |
parent | 0d7b898bf7b98116a8654e4754ae7bdd3fe7b21e (diff) |
coverity#1209785 Dereference before null check
Change-Id: Iff8553169bd4670d989b45ce488a0cd2b13e0cf3
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 217ff18e1e47..a32d88348844 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -658,11 +658,8 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) if( pSalvageItem ) { aURL = pSalvageItem->GetValue(); - if (pNewSet) - { - pNewSet->ClearItem( SID_ORIGURL ); - pNewSet->ClearItem( SID_DOC_SALVAGE ); - } + pNewSet->ClearItem( SID_ORIGURL ); + pNewSet->ClearItem( SID_DOC_SALVAGE ); } #if HAVE_FEATURE_MULTIUSER_ENVIRONMENT |