From c2fe73d6a976e5a9131ff4aa04e7b5cea674ef19 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 8 Mar 2016 18:15:52 +0100 Subject: Remove redundant checks (that trigger loplugin:implicitboolconversion]) Change-Id: I86c0b56b7d330e3e3450a5806a89ca8fb7a1bfae --- cppu/source/uno/data.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cppu') diff --git a/cppu/source/uno/data.cxx b/cppu/source/uno/data.cxx index 088f1769ea63..9a33a2a48a35 100644 --- a/cppu/source/uno/data.cxx +++ b/cppu/source/uno/data.cxx @@ -468,10 +468,10 @@ public: }; BinaryCompatible_Impl::BinaryCompatible_Impl() { - static_assert( ((sal_Bool) true) == sal_True && - (1 != 0) == sal_True, "must be binary compatible" ); - static_assert( ((sal_Bool) false) == sal_False && - (1 == 0) == sal_False, "must be binary compatible" ); + static_assert( static_cast(true) == sal_True, + "must be binary compatible" ); + static_assert( static_cast(false) == sal_False, + "must be binary compatible" ); #ifdef MAX_ALIGNMENT_4 // max alignment is 4 static_assert(offsetof(AlignSize_Impl, dDouble) == 4, "offsetof(AlignSize_Impl, dDouble) != 4"); -- cgit v1.2.3