[Libreoffice-commits] core.git: sc/source

Eike Rathke erack at redhat.com
Thu Aug 13 14:10:16 PDT 2015


 sc/source/ui/view/tabview5.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit f04257d88f3cc4e884e8da2a0b5395b079a49cce
Author: Eike Rathke <erack at redhat.com>
Date:   Thu Aug 13 23:06:59 2015 +0200

    blind fix MSVC werror C4701,C4703 potentially uninitialized local variable
    
    ... ´pModelObj´ used. Which is bullshit, but..
    
    Change-Id: Ic731fc92264560c34bd512dc232a9ba901e218a5

diff --git a/sc/source/ui/view/tabview5.cxx b/sc/source/ui/view/tabview5.cxx
index 5644fea..35d5a40 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;


More information about the Libreoffice-commits mailing list