diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-28 13:44:22 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-28 14:30:42 +0000 |
commit | 50d5bd90e007ecc9c826ce2499120e15cc4e3a5c (patch) | |
tree | 173a385d84eb23f002ddb17e00330f2f52dcd5e2 /starmath | |
parent | b7180fa62c8a4b8414c55a9b8c278ef7400cd563 (diff) |
coverity#705892 Dereference before null check
Change-Id: I8dddc52e5b9af2f97bb41aec6e666d0ae0fcbbb5
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/view.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index 445b0be2bc76..4c8e22c703dc 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -1593,7 +1593,7 @@ void SmViewShell::Execute(SfxRequest& rReq) sal::static_int_cast< sal_uIntPtr >( xTnnl->getSomething( TransferableHelper::getUnoTunnelId() ))); if( pTrans ) - pTrans->CopyToClipboard( this ? GetEditWindow() : 0 ); + pTrans->CopyToClipboard(GetEditWindow()); } } } @@ -1601,7 +1601,7 @@ void SmViewShell::Execute(SfxRequest& rReq) case SID_PASTEOBJECT: { - TransferableDataHelper aData( TransferableDataHelper::CreateFromSystemClipboard(this ? GetEditWindow(): 0) ); + TransferableDataHelper aData( TransferableDataHelper::CreateFromSystemClipboard(GetEditWindow()) ); uno::Reference < io::XInputStream > xStrm; SotFormatStringId nId; if( aData.GetTransferable().is() && |