mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Fix clang-tidy performance-inefficient-string-concatenation warnings
This commit is contained in:
parent
cb8c35748a
commit
c609d5c90a
7 changed files with 15 additions and 9 deletions
|
@ -341,9 +341,12 @@ void CPPCompile::RegisterCompiledBody(const string& f) {
|
|||
auto be = body_events.find(f);
|
||||
if ( be != body_events.end() )
|
||||
for ( const auto& e : be->second ) {
|
||||
if ( events.size() > 0 )
|
||||
if ( ! events.empty() )
|
||||
events += ", ";
|
||||
events = events + "\"" + e + "\"";
|
||||
|
||||
events += "\"";
|
||||
events += e;
|
||||
events += "\"";
|
||||
}
|
||||
|
||||
events = string("{") + events + "}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue