mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Fix pessimizing-move compiler warning.
Returning via move() should never be needed and may result in a compiler warning: "moving a local object in a return statement prevents copy elision".
This commit is contained in:
parent
6766f52cdd
commit
85b5c6ffbd
3 changed files with 6 additions and 2 deletions
4
CHANGES
4
CHANGES
|
@ -1,4 +1,8 @@
|
|||
|
||||
2.5-448 | 2018-02-12 11:09:00 -0600
|
||||
|
||||
* Fix pessimizing-move compiler warning. (Corelight)
|
||||
|
||||
2.5-447 | 2018-02-12 11:00:44 -0600
|
||||
|
||||
* Add limit to number of auth flavors parsed out of MNT replies (Corelight)
|
||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
2.5-447
|
||||
2.5-448
|
||||
|
|
|
@ -789,5 +789,5 @@ vector<Func*> ID::GetOptionHandlers() const
|
|||
vector<Func*> v;
|
||||
for ( auto& element : option_handlers )
|
||||
v.push_back(element.second);
|
||||
return std::move(v);
|
||||
return v;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue