mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Fix clang-tidy modernize-return-braced-init-list findings
This commit is contained in:
parent
8c3eee7a87
commit
17c14a3ce1
9 changed files with 26 additions and 29 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue