diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-11 19:17:44 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-11 21:05:58 +0100 |
commit | 85834e2e18b3dbeb6d257e4bb83e4cc61e538f9e (patch) | |
tree | f428ac130a0b018d1a3ae5058265146932a6dc2c | |
parent | 5ca465c9a6c5dec04b77b013581a3629c17ced99 (diff) |
coverity#1213305 Dereference before null check
Change-Id: Ib42b50aad0f82f9b6974969ab9a30a4d1efbf46e
-rw-r--r-- | sw/source/core/uibase/uiview/viewmdi.cxx | 2 |
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 ce6058346dc4..b18ef33b6033 100644 --- a/sw/source/core/uibase/uiview/viewmdi.cxx +++ b/sw/source/core/uibase/uiview/viewmdi.cxx @@ -80,7 +80,7 @@ void SwView::_SetZoom( const Size &rEditSize, SvxZoomType eZoomType, long nFac = nFactor; - bool bWeb = 0 != PTR_CAST(SwWebView, this); + const bool bWeb = this->ISA(SwWebView); SwMasterUsrPref *pUsrPref = (SwMasterUsrPref*)SW_MOD()->GetUsrPref(bWeb); const SwPageDesc &rDesc = m_pWrtShell->GetPageDesc( m_pWrtShell->GetCurPageDesc() ); |