summaryrefslogtreecommitdiff
path: root/cppu
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-03-08 18:15:52 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-03-08 18:15:52 +0100
commitc2fe73d6a976e5a9131ff4aa04e7b5cea674ef19 (patch)
tree0b5017154879a3375159b34d4234fc58fe63c23a /cppu
parent05bca569232d0ece0c6700513b7b1351238c85ec (diff)
Remove redundant checks (that trigger loplugin:implicitboolconversion])
Change-Id: I86c0b56b7d330e3e3450a5806a89ca8fb7a1bfae
Diffstat (limited to 'cppu')
-rw-r--r--cppu/source/uno/data.cxx8
1 files changed, 4 insertions, 4 deletions
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<sal_Bool>(true) == sal_True,
+ "must be binary compatible" );
+ static_assert( static_cast<sal_Bool>(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");