mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
More std::move changes based on Coverity findings
This commit is contained in:
parent
2390625732
commit
34ee136a3c
19 changed files with 48 additions and 45 deletions
|
@ -38,7 +38,7 @@ void EventRegistry::Register(EventHandlerPtr handler, bool is_from_script) {
|
|||
handlers[name] = std::unique_ptr<EventHandler>(handler.Ptr());
|
||||
|
||||
if ( ! is_from_script )
|
||||
not_only_from_script.insert(name);
|
||||
not_only_from_script.insert(std::move(name));
|
||||
}
|
||||
|
||||
EventHandler* EventRegistry::Lookup(std::string_view name) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue