From cc252e16418b1bf1cb77a96c21bcea994e5bddb7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 2 Aug 2016 08:59:19 +0200 Subject: [PATCH] loplugin:simplifybool Change-Id: I2e1f288bf71cd5598bccf12322f74c096386b3c9 --- sd/source/ui/unoidl/unopage.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx index 7ca15d95dc13..668325ae0add 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