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

coverity#736870 Dereference before null check

Change-Id: Ic1a410952023d47da5bb36a438eac1bc3c68319c
üst 7ad148c1
...@@ -116,7 +116,7 @@ sal_uInt16 SwView::SetPrinter(SfxPrinter* pNew, sal_uInt16 nDiffFlags, bool ) ...@@ -116,7 +116,7 @@ sal_uInt16 SwView::SetPrinter(SfxPrinter* pNew, sal_uInt16 nDiffFlags, bool )
if ( nDiffFlags & SFX_PRINTER_PRINTER ) if ( nDiffFlags & SFX_PRINTER_PRINTER )
rSh.SetModified(); rSh.SetModified();
} }
bool bWeb = 0 != PTR_CAST(SwWebView, this); bool bWeb = this->ISA(SwWebView);
if ( nDiffFlags & SFX_PRINTER_OPTIONS ) if ( nDiffFlags & SFX_PRINTER_OPTIONS )
::SetPrinter( rSh.getIDocumentDeviceAccess(), pNew, bWeb ); ::SetPrinter( rSh.getIDocumentDeviceAccess(), pNew, bWeb );
......
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