mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
tweaks per reviewing feedback
This commit is contained in:
parent
da72c1ea93
commit
702172079a
5 changed files with 14 additions and 14 deletions
12
src/Stmt.h
12
src/Stmt.h
|
@ -546,19 +546,19 @@ class WhenInfo
|
|||
public:
|
||||
// Takes ownership of the CaptureList, which if nil signifies
|
||||
// old-style frame semantics.
|
||||
WhenInfo(ExprPtr _cond, FuncType::CaptureList* _cl, bool _is_return);
|
||||
WhenInfo(ExprPtr cond, FuncType::CaptureList* cl, bool is_return);
|
||||
|
||||
// Constructor used by script optimization to create a stub.
|
||||
WhenInfo(bool _is_return);
|
||||
WhenInfo(bool is_return);
|
||||
|
||||
~WhenInfo() { delete cl; }
|
||||
|
||||
void AddBody(StmtPtr _s) { s = std::move(_s); }
|
||||
void AddBody(StmtPtr arg_s) { s = std::move(arg_s); }
|
||||
|
||||
void AddTimeout(ExprPtr _timeout, StmtPtr _timeout_s)
|
||||
void AddTimeout(ExprPtr arg_timeout, StmtPtr arg_timeout_s)
|
||||
{
|
||||
timeout = std::move(_timeout);
|
||||
timeout_s = std::move(_timeout_s);
|
||||
timeout = std::move(arg_timeout);
|
||||
timeout_s = std::move(arg_timeout_s);
|
||||
}
|
||||
|
||||
// Complete construction of the associated internals, including
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue