use true/false instead of 1/0 detected and changed by clang-tidy

This commit is contained in:
Axel Kohlmeyer
2021-10-20 12:41:02 -04:00
parent 84666543d1
commit 85433e8bd1
65 changed files with 130 additions and 130 deletions

View File

@ -83,7 +83,7 @@ void TestConfigReader::prerequisites(const yaml_event_t &event)
std::stringstream data((char *)event.data.scalar.value);
std::string key, value;
while (1) {
while (true) {
data >> key >> value;
if (data.eof()) break;
config.prerequisites.emplace_back(key, value);
@ -138,7 +138,7 @@ void TestConfigReader::extract(const yaml_event_t &event)
std::stringstream data((char *)event.data.scalar.value);
std::string name;
int value;
while (1) {
while (true) {
data >> name >> value;
if (data.eof()) break;
config.extract.emplace_back(name, value);