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

New commits:
commit f04257d88f3cc4e884e8da2a0b5395b079a49cce
Author: Eike Rathke <er...@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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to