From 7a1c21e53fc4733a4bb52282ce0098fcc085ab0e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 22 Nov 2017 09:33:32 +0200 Subject: loplugin:simplifybool for negation of comparison operator Change-Id: Ie56daf560185274754afbc7a09c432b5c2793791 Reviewed-on: https://gerrit.libreoffice.org/45068 Tested-by: Jenkins Reviewed-by: Noel Grandin --- comphelper/source/misc/types.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'comphelper/source') diff --git a/comphelper/source/misc/types.cxx b/comphelper/source/misc/types.cxx index 4f92aa15c319..f5a57410495f 100644 --- a/comphelper/source/misc/types.cxx +++ b/comphelper/source/misc/types.cxx @@ -137,7 +137,7 @@ Type getSequenceElementType(const Type& _rSequenceType) OSL_ENSURE(_rSequenceType.getTypeClass() == TypeClass_SEQUENCE, "getSequenceElementType: must be called with a sequence type!"); - if (!(_rSequenceType.getTypeClass() == TypeClass_SEQUENCE)) + if (_rSequenceType.getTypeClass() != TypeClass_SEQUENCE) return Type(); TypeDescription aTD(_rSequenceType); -- cgit