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:
Jon Siwek 2018-02-12 11:09:00 -06:00
parent 6766f52cdd
commit 85b5c6ffbd
3 changed files with 6 additions and 2 deletions

View file

@ -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 2.5-447 | 2018-02-12 11:00:44 -0600
* Add limit to number of auth flavors parsed out of MNT replies (Corelight) * Add limit to number of auth flavors parsed out of MNT replies (Corelight)

View file

@ -1 +1 @@
2.5-447 2.5-448

View file

@ -789,5 +789,5 @@ vector<Func*> ID::GetOptionHandlers() const
vector<Func*> v; vector<Func*> v;
for ( auto& element : option_handlers ) for ( auto& element : option_handlers )
v.push_back(element.second); v.push_back(element.second);
return std::move(v); return v;
} }