mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
Add some uses of std::move in constructors and simple functions for pass-by-value arguments
This commit is contained in:
parent
1e33467844
commit
ef5b169acd
9 changed files with 15 additions and 14 deletions
|
@ -172,8 +172,8 @@ protected:
|
|||
class CoalescedScriptFunc : public ScriptFunc {
|
||||
public:
|
||||
CoalescedScriptFunc(StmtPtr merged_body, ScopePtr scope, ScriptFuncPtr orig_func)
|
||||
: ScriptFunc(orig_func->Name(), orig_func->GetType(), {merged_body}, {0}), orig_func(orig_func) {
|
||||
SetScope(scope);
|
||||
: ScriptFunc(orig_func->Name(), orig_func->GetType(), {std::move(merged_body)}, {0}), orig_func(orig_func) {
|
||||
SetScope(std::move(scope));
|
||||
};
|
||||
|
||||
ValPtr Invoke(zeek::Args* args, Frame* parent) const override {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue