summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-11 19:53:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-11 21:05:58 +0100
commit4e0d635f50040df960ce60ed954c76fa811f40bc (patch)
tree66feaa4ec4dafe1333f92692f13e152bb85284e5 /sw
parent4d9d727a23c9e42599a90a1759c85b3e443de493 (diff)
coverity#736861 Dereference before null check
Change-Id: I4930657852f0ee4c3d7a751b9c90a2a65d329c40
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/uibase/app/docsh.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/uibase/app/docsh.cxx b/sw/source/core/uibase/app/docsh.cxx
index e3c0e48947ef..23abaf723c30 100644
--- a/sw/source/core/uibase/app/docsh.cxx
+++ b/sw/source/core/uibase/app/docsh.cxx
@@ -818,7 +818,7 @@ void SwDocShell::Draw( OutputDevice* pDev, const JobSetup& rSetup,
pDev->SetFillColor();
pDev->SetLineColor();
pDev->SetBackground();
- bool bWeb = 0 != PTR_CAST(SwWebDocShell, this);
+ const bool bWeb = this->ISA(SwWebDocShell);
SwPrintData aOpts;
SwViewShell::PrtOle2( pDoc, SW_MOD()->GetUsrPref(bWeb), aOpts, pDev, aRect );
pDev->Pop();