summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-11 19:17:06 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-11 21:05:58 +0100
commit5ca465c9a6c5dec04b77b013581a3629c17ced99 (patch)
treeafaaaef176102aa795a4a6d34e557ee7f2ba6805 /sw
parentf5177e438e7ba026c5372ba10f0aff5923797664 (diff)
coverity#1213306 Dereference before null check
Change-Id: I0ea0731b96ba9483986240ab69a5fd4e728bfae1
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/uibase/uiview/viewmdi.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/uibase/uiview/viewmdi.cxx b/sw/source/core/uibase/uiview/viewmdi.cxx
index c681a8fe38b3..ce6058346dc4 100644
--- a/sw/source/core/uibase/uiview/viewmdi.cxx
+++ b/sw/source/core/uibase/uiview/viewmdi.cxx
@@ -215,7 +215,7 @@ void SwView::SetViewLayout( sal_uInt16 nColumns, bool bBookMode, bool bViewOnly
if ( !GetViewFrame()->GetFrame().IsInPlace() && !bViewOnly )
{
- const bool bWeb = 0 != PTR_CAST(SwWebView, this);
+ const bool bWeb = this->ISA(SwWebView);
SwMasterUsrPref *pUsrPref = (SwMasterUsrPref*)SW_MOD()->GetUsrPref(bWeb);
// Update MasterUsrPrefs and after that update the ViewOptions of the current View.