mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Fix clang-tidy bugprone-use-after-move warnings in headers
This commit is contained in:
parent
9c3dddfa12
commit
2abb7830a5
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ public:
|
||||||
|
|
||||||
template<typename N, typename I>
|
template<typename N, typename I>
|
||||||
void Insert(N&& name, I&& id) {
|
void Insert(N&& name, I&& id) {
|
||||||
local[std::forward<N>(name)] = std::forward<I>(id);
|
local[std::forward<N>(name)] = id;
|
||||||
ordered_vars.push_back(std::forward<I>(id));
|
ordered_vars.push_back(std::forward<I>(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue