mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Fix clang-tidy modernize-pass-by-value findings
This commit is contained in:
parent
46e67a749a
commit
5930d2f944
22 changed files with 37 additions and 40 deletions
|
@ -108,8 +108,8 @@ class DelayInfo {
|
|||
public:
|
||||
static const DelayInfoPtr nil;
|
||||
|
||||
explicit DelayInfo(const WriteContext& ctx, const zeek::ValPtr token_val, double expire_time)
|
||||
: ctx(ctx), token_val(token_val), expire_time(expire_time) {}
|
||||
explicit DelayInfo(WriteContext ctx, const zeek::ValPtr token_val, double expire_time)
|
||||
: ctx(std::move(ctx)), token_val(token_val), expire_time(expire_time) {}
|
||||
|
||||
// No copy or assignment of DelayInfo itself, should
|
||||
// always be managed through a shared pointer.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue