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

Noel Grandin noel at peralex.com
Tue Aug 2 07:00:28 UTC 2016


 sd/source/ui/unoidl/unopage.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cc252e16418b1bf1cb77a96c21bcea994e5bddb7
Author: Noel Grandin <noel at peralex.com>
Date:   Tue Aug 2 08:59:19 2016 +0200

    loplugin:simplifybool
    
    Change-Id: I2e1f288bf71cd5598bccf12322f74c096386b3c9

diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx
index 7ca15d9..668325a 100644
--- a/sd/source/ui/unoidl/unopage.cxx
+++ b/sd/source/ui/unoidl/unopage.cxx
@@ -394,7 +394,7 @@ void SdGenericDrawPage::UpdateModel()
     {
         mpModel = nullptr;
     }
-    mbIsImpressDocument = mpModel ? mpModel->IsImpressDocument() : false;
+    mbIsImpressDocument = mpModel && mpModel->IsImpressDocument();
 }
 
 // this is called whenever a SdrObject must be created for a empty api shape wrapper


More information about the Libreoffice-commits mailing list