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:
Felipe Magno de Almeida 2015-12-29 11:38:50 -02:00
parent a14b4bf497
commit d05a14671e
1 changed files with 1 additions and 1 deletions

View File

@ -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 {