forked from enlightenment/efl
eo-cxx: Removed pessimization use of std::move
Local variables, when returned, are already moved or copy-elised. The use of std::move removes the possibility of copy-elision, making it possibly slower. Removed the wrong std::move use.
This commit is contained in:
parent
a14b4bf497
commit
d05a14671e
|
@ -116,7 +116,7 @@ signal_connection make_signal_connection(std::unique_ptr<F>& data, Eo* eo, ::Eo_
|
|||
{
|
||||
signal_connection c(_event_deleter<F>(data.get(), eo, cb, description));
|
||||
data.release();
|
||||
return std::move(c);
|
||||
return c;
|
||||
}
|
||||
|
||||
namespace _detail {
|
||||
|
|
Loading…
Reference in New Issue