Skip to content

Commit

Permalink
tidy: Simplify a number of boolean expressions.
Browse files Browse the repository at this point in the history
The clang-tidy "simplify boolean expression" checker pointed out a one
place where expressions involving boolean values could be simplified.
These was a change from "while (b == true)" that can be reduced to
"while(b)" for easier reading.

https://clang.llvm.org/extra/clang-tidy/checks/readability-simplify-boolean-expr.html
  • Loading branch information
linuxdude42 committed Nov 23, 2019
1 parent f1f2825 commit dfbd54b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/util-nvctrl.cpp
Expand Up @@ -294,7 +294,7 @@ bool MythNVControl::GetNvidiaRates(MythXDisplay *MythDisplay, std::vector<Displa
break;
}
}
} while (erased == true);
} while (erased);

// Update refresh rates
for (size_t i = 0; i < VideoModes.size(); i++)
Expand Down

0 comments on commit dfbd54b

Please sign in to comment.