Use move semantics.

This commit is contained in:
chriseth
2019-04-05 13:41:39 +02:00
parent 054c16aa05
commit 0d2ae84081
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ bool ScopeFiller::registerFunction(FunctionDefinition const& _funDef)
vector<Scope::YulType> returns;
for (auto const& _return: _funDef.returnVariables)
returns.emplace_back(_return.type.str());
if (!m_currentScope->registerFunction(_funDef.name, arguments, returns))
if (!m_currentScope->registerFunction(_funDef.name, std::move(arguments), std::move(returns)))
{
//@TODO secondary location
m_errorReporter.declarationError(