aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-09-22 17:17:54 +0800
committerchriseth <c@ethdev.com>2015-09-22 17:17:54 +0800
commit31dc588b55435c40dab64d31d64d876237df1e68 (patch)
tree9038815f41c1f14e5eb94b2592a158a82a59e8d9
parent42c0009205852abc2f2d7415a9e5faaf6e5b2d56 (diff)
downloaddexon-solidity-31dc588b55435c40dab64d31d64d876237df1e68.tar.gz
dexon-solidity-31dc588b55435c40dab64d31d64d876237df1e68.tar.zst
dexon-solidity-31dc588b55435c40dab64d31d64d876237df1e68.zip
Build fix for MacOS.
-rw-r--r--libsolidity/TypeChecker.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libsolidity/TypeChecker.cpp b/libsolidity/TypeChecker.cpp
index a886a2ab..f453e2fa 100644
--- a/libsolidity/TypeChecker.cpp
+++ b/libsolidity/TypeChecker.cpp
@@ -83,7 +83,7 @@ bool TypeChecker::visit(ContractDefinition const& _contract)
{
auto err = make_shared<DeclarationError>();
*err << errinfo_comment("Only one fallback function is allowed.");
- m_errors.push_back(move(err));
+ m_errors.push_back(err);
}
else
{
@@ -142,7 +142,7 @@ void TypeChecker::checkContractDuplicateFunctions(ContractDefinition const& _con
errinfo_sourceLocation(functions[_contract.name()].front()->location()) <<
errinfo_comment("More than one constructor defined.") <<
errinfo_secondarySourceLocation(ssl);
- m_errors.push_back(move(err));
+ m_errors.push_back(err);
}
for (auto const& it: functions)
{
@@ -157,7 +157,7 @@ void TypeChecker::checkContractDuplicateFunctions(ContractDefinition const& _con
errinfo_comment("Function with same name and arguments defined twice.") <<
errinfo_secondarySourceLocation(SecondarySourceLocation().append(
"Other declaration is here:", overloads[i]->location()));
- m_errors.push_back(move(err));
+ m_errors.push_back(err);
}
}
}
@@ -1133,7 +1133,7 @@ void TypeChecker::typeError(ASTNode const& _node, string const& _description)
errinfo_sourceLocation(_node.location()) <<
errinfo_comment(_description);
- m_errors.push_back(move(err));
+ m_errors.push_back(err);
}
void TypeChecker::fatalTypeError(ASTNode const& _node, string const& _description)