use true/false instead of 1/0 detected and changed by clang-tidy
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user