summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/tabview5.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabview5.cxx b/sc/source/ui/view/tabview5.cxx
index 5644feaf7a2e..35d5a408a5d3 100644
--- a/sc/source/ui/view/tabview5.cxx
+++ b/sc/source/ui/view/tabview5.cxx
@@ -307,8 +307,8 @@ void ScTabView::TabChanged( bool bSameTabButMoved )
ScDocShell* pDocSh;
ScModelObj* pModelObj;
- if ( ( pDocSh = GetViewData().GetDocShell() ) &&
- ( pModelObj = ScModelObj::getImplementation( pDocSh->GetModel() )) )
+ if ( ( pDocSh = GetViewData().GetDocShell() ) != nullptr &&
+ ( pModelObj = ScModelObj::getImplementation( pDocSh->GetModel() )) != nullptr )
{
Size aDocSize = pModelObj->getDocumentSize();
std::stringstream ss;