diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-11 19:14:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-11 21:05:57 +0100 |
commit | f5177e438e7ba026c5372ba10f0aff5923797664 (patch) | |
tree | 432a6de0cdbc7e7c68afcde75c05c170294ba968 /sw | |
parent | 7ad148c17ac55beff60b23ae973f4ebb7b599980 (diff) |
coverity#736870 Dereference before null check
Change-Id: Ic1a410952023d47da5bb36a438eac1bc3c68319c
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/uibase/uiview/viewprt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/uibase/uiview/viewprt.cxx b/sw/source/core/uibase/uiview/viewprt.cxx index f29c7b85d99d..aa2abd7d5fe5 100644 --- a/sw/source/core/uibase/uiview/viewprt.cxx +++ b/sw/source/core/uibase/uiview/viewprt.cxx @@ -116,7 +116,7 @@ sal_uInt16 SwView::SetPrinter(SfxPrinter* pNew, sal_uInt16 nDiffFlags, bool ) if ( nDiffFlags & SFX_PRINTER_PRINTER ) rSh.SetModified(); } - bool bWeb = 0 != PTR_CAST(SwWebView, this); + bool bWeb = this->ISA(SwWebView); if ( nDiffFlags & SFX_PRINTER_OPTIONS ) ::SetPrinter( rSh.getIDocumentDeviceAccess(), pNew, bWeb ); |