Module: check_mk
Branch: master
Commit: 63aebea36f7be199590412e8d0e7efb5a2d4d99b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=63aebea36f7be1…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Feb 2 15:51:15 2016 +0100
clang-tidy fixes for readability-simplify-boolean-expr check.
---
livestatus/src/IntColumnFilter.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/livestatus/src/IntColumnFilter.cc b/livestatus/src/IntColumnFilter.cc
index a048a52..7681c35 100644
--- a/livestatus/src/IntColumnFilter.cc
+++ b/livestatus/src/IntColumnFilter.cc
@@ -76,7 +76,7 @@ void IntColumnFilter::findIntLimits(const char *columnname, int *lower,
/* [lower, upper[ is some interval. This filter might restrict
that interval to a smaller interval.
*/
- int opref = _opid * (_negate != false ? -1 : 1);
+ int opref = _opid * (_negate ? -1 : 1);
switch (opref) {
case OP_EQUAL:
if (ref_value >= *lower && ref_value < *upper) {
@@ -128,7 +128,7 @@ bool IntColumnFilter::optimizeBitmask(const char *columnname, uint32_t
*mask) {
// by the filter.
uint32_t bit = 1 << ref_value;
- int opref = _opid * (_negate != false ? -1 : 1);
+ int opref = _opid * (_negate ? -1 : 1);
switch (opref) {
case OP_EQUAL:
*mask &= bit; // bit must be set