mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +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
|
@ -1563,7 +1563,7 @@ public:
|
|||
* @return True if the element was inserted or false if the element was
|
||||
* the wrong type.
|
||||
*/
|
||||
bool Append(ValPtr element) { return Insert(Size(), element); }
|
||||
bool Append(ValPtr element) { return Insert(Size(), std::move(element)); }
|
||||
|
||||
// Removes an element at a specific position.
|
||||
bool Remove(unsigned int index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue