Kaydet (Commit) 50d5bd90 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#705892 Dereference before null check

Change-Id: I8dddc52e5b9af2f97bb41aec6e666d0ae0fcbbb5
üst b7180fa6
......@@ -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() &&
......
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