From cda88ec7a43162df37098c4525c33451266a1575 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 4 Aug 2020 08:45:36 +0200 Subject: loplugin:simplifybool a little more aggressive with expressions like !(a && b) Change-Id: Id2acec2a8d0eaaa8e5e37dbd2cae7281be36572e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100040 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmlscript/source/xmldlg_imexp/xmldlg_export.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xmlscript') diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx index 32c61ad72497..23dc6c0a90fc 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx @@ -984,7 +984,8 @@ void ElementDescriptor::readSelectionTypeAttr( OUString const & rPropName, OUStr Any aSelectionType ( _xProps->getPropertyValue( rPropName ) ); - if (!(aSelectionType.getValueTypeClass() == TypeClass_ENUM && aSelectionType.getValueType() == cppu::UnoType::get())) + if (aSelectionType.getValueTypeClass() != TypeClass_ENUM || + aSelectionType.getValueType() != cppu::UnoType::get()) return; ::view::SelectionType eSelectionType; -- cgit