Fix clang-tidy modernize-return-braced-init-list findings

This commit is contained in:
Tim Wojtulewicz 2025-05-15 09:52:10 -07:00
parent 8c3eee7a87
commit 17c14a3ce1
9 changed files with 26 additions and 29 deletions

View file

@ -141,7 +141,7 @@ string CPPCompile::GenExpr(const Expr* e, GenType gt, bool top_level) {
default:
// Intended to catch errors in overlooking the possible
// expressions that might appear.
return string("EXPR");
return "EXPR";
}
}
@ -825,7 +825,7 @@ string CPPCompile::GenVal(const ValPtr& v) {
auto it = t->InternalType();
if ( tag == TYPE_BOOL )
return string(v->IsZero() ? "false" : "true");
return v->IsZero() ? "false" : "true";
if ( tag == TYPE_ENUM )
return GenEnum(t, v);