mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18: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
|
@ -151,7 +151,7 @@ public:
|
|||
// delete values.
|
||||
class DeltaSetSetEntry : public ValDelta {
|
||||
public:
|
||||
DeltaSetSetEntry(const ValTrace* _vt, ValPtr _index) : ValDelta(_vt), index(_index) {}
|
||||
DeltaSetSetEntry(const ValTrace* _vt, ValPtr _index) : ValDelta(_vt), index(std::move(_index)) {}
|
||||
|
||||
std::string Generate(ValTraceMgr* vtm) const override;
|
||||
bool NeedsLHS() const override { return false; }
|
||||
|
@ -166,7 +166,7 @@ private:
|
|||
class DeltaSetTableEntry : public ValDelta {
|
||||
public:
|
||||
DeltaSetTableEntry(const ValTrace* _vt, ValPtr _index, ValPtr _new_val)
|
||||
: ValDelta(_vt), index(_index), new_val(std::move(_new_val)) {}
|
||||
: ValDelta(_vt), index(std::move(_index)), new_val(std::move(_new_val)) {}
|
||||
|
||||
std::string Generate(ValTraceMgr* vtm) const override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue