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

coverity#735832 Explicit null dereferenced

Change-Id: Ifcce7f0d75cb595add30a4403e5c42348043137b
üst 2241ffea
...@@ -658,11 +658,15 @@ SfxFrame* SdModule::ExecuteNewDocument( SfxRequest& rReq ) ...@@ -658,11 +658,15 @@ SfxFrame* SdModule::ExecuteNewDocument( SfxRequest& rReq )
ApplyItemSet( SID_SD_EDITOPTIONS, *pRet.get() ); ApplyItemSet( SID_SD_EDITOPTIONS, *pRet.get() );
} }
if( pShell && pViewFrame ) ::sd::DrawDocShell* pDocShell(NULL);
if (pShell && pViewFrame)
{ {
::sd::DrawDocShell* pDocShell = pDocShell = PTR_CAST(::sd::DrawDocShell, pShell);
PTR_CAST(::sd::DrawDocShell,pShell); }
SdDrawDocument* pDoc = pDocShell->GetDoc();
if (pDocShell)
{
SdDrawDocument* pDoc = pDocShell->GetDoc();
::sd::ViewShellBase* pBase = ::sd::ViewShellBase* pBase =
::sd::ViewShellBase::GetViewShellBase ( ::sd::ViewShellBase::GetViewShellBase (
......
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