mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 04:28:20 +00:00
Fix clang-tidy performance-move-const-argument warnings (moving const variables)
This commit is contained in:
parent
6196950567
commit
144a3dee3a
9 changed files with 13 additions and 12 deletions
|
@ -2348,7 +2348,7 @@ TypePtr merge_record_types(const Type* t1, const Type* t2) {
|
|||
attrs3->AddAttrs(td2->attrs);
|
||||
|
||||
attrs3->AddAttr(make_intrusive<detail::Attr>(detail::ATTR_OPTIONAL));
|
||||
auto td_merge = new TypeDecl(util::copy_string(td2->id), std::move(td2->type), attrs3);
|
||||
auto td_merge = new TypeDecl(util::copy_string(td2->id), td2->type, attrs3);
|
||||
tdl3->push_back(td_merge);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue