mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00
Tweak minor const-ref/std::move things in script-opt code
This commit is contained in:
parent
4b6369a333
commit
b66f4ad500
4 changed files with 9 additions and 9 deletions
|
@ -11,7 +11,7 @@ TempVar::TempVar(int num, const TypePtr& t, ExprPtr _rhs) : type(t)
|
|||
char buf[8192];
|
||||
snprintf(buf, sizeof buf, "#%d", num);
|
||||
name = buf;
|
||||
rhs = _rhs;
|
||||
rhs = std::move(_rhs);
|
||||
}
|
||||
|
||||
void TempVar::SetAlias(IDPtr _alias, const DefPoints* _dps)
|
||||
|
@ -28,7 +28,7 @@ void TempVar::SetAlias(IDPtr _alias, const DefPoints* _dps)
|
|||
if ( alias == id )
|
||||
reporter->InternalError("Creating alias loop");
|
||||
|
||||
alias = _alias;
|
||||
alias = std::move(_alias);
|
||||
dps = _dps;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue