diff options
author | Eike Rathke <erack@redhat.com> | 2015-08-13 23:06:59 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-08-13 23:09:19 +0200 |
commit | f04257d88f3cc4e884e8da2a0b5395b079a49cce (patch) | |
tree | 12091d44d49c909259ce40d3aa3b174e215bab75 /sc | |
parent | 8747442d179367a9cea652643a516021fa7c5510 (diff) |
blind fix MSVC werror C4701,C4703 potentially uninitialized local variable
... ´pModelObj´ used. Which is bullshit, but..
Change-Id: Ic731fc92264560c34bd512dc232a9ba901e218a5
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/tabview5.cxx | 4 |
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; |