mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add std:: qualifier to move() calls
This commit is contained in:
@@ -58,7 +58,7 @@ void GasTest::parseExpectations(std::istream& _stream)
|
||||
{
|
||||
string kind = line.substr(3, line.length() - 4);
|
||||
boost::trim(kind);
|
||||
currentKind = &m_expectations[move(kind)];
|
||||
currentKind = &m_expectations[std::move(kind)];
|
||||
}
|
||||
else if (!currentKind)
|
||||
BOOST_THROW_EXCEPTION(runtime_error("No function kind specified. Expected \"creation:\", \"external:\" or \"internal:\"."));
|
||||
|
||||
@@ -77,7 +77,7 @@ SMTCheckerTest::SMTCheckerTest(string const& _filename): SyntaxTest(_filename, E
|
||||
return filtered;
|
||||
};
|
||||
if (m_modelCheckerSettings.invariants.invariants.empty())
|
||||
m_expectations = removeInv(move(m_expectations));
|
||||
m_expectations = removeInv(std::move(m_expectations));
|
||||
|
||||
auto const& ignoreInv = m_reader.stringSetting("SMTIgnoreInv", "yes");
|
||||
if (ignoreInv == "no")
|
||||
|
||||
@@ -61,7 +61,7 @@ SemanticTest::SemanticTest(
|
||||
m_sideEffectHooks(makeSideEffectHooks()),
|
||||
m_enforceCompileToEwasm(_enforceCompileToEwasm),
|
||||
m_enforceGasCost(_enforceGasCost),
|
||||
m_enforceGasCostMinValue(move(_enforceGasCostMinValue))
|
||||
m_enforceGasCostMinValue(std::move(_enforceGasCostMinValue))
|
||||
{
|
||||
static set<string> const compileViaYulAllowedValues{"also", "true", "false"};
|
||||
static set<string> const yulRunTriggers{"also", "true"};
|
||||
@@ -457,14 +457,14 @@ TestCase::TestResult SemanticTest::runTest(
|
||||
success = false;
|
||||
|
||||
test.setFailure(!m_transactionSuccessful);
|
||||
test.setRawBytes(move(output));
|
||||
test.setRawBytes(std::move(output));
|
||||
test.setContractABI(m_compiler.contractABI(m_compiler.lastContractName(m_sources.mainSourceFile)));
|
||||
}
|
||||
|
||||
vector<string> effects;
|
||||
for (SideEffectHook const& hook: m_sideEffectHooks)
|
||||
effects += hook(test.call());
|
||||
test.setSideEffects(move(effects));
|
||||
test.setSideEffects(std::move(effects));
|
||||
|
||||
success &= test.call().expectedSideEffects == test.call().actualSideEffects;
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ bytes SolidityExecutionFramework::multiSourceCompileContract(
|
||||
try
|
||||
{
|
||||
asmStack.optimize();
|
||||
obj = move(*asmStack.assemble(yul::YulStack::Machine::EVM).bytecode);
|
||||
obj = std::move(*asmStack.assemble(yul::YulStack::Machine::EVM).bytecode);
|
||||
obj.link(_libraryAddresses);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -178,7 +178,7 @@ vector<solidity::frontend::test::FunctionCall> TestFileParser::parseFunctionCall
|
||||
accept(Token::Newline, true);
|
||||
call.expectedSideEffects = parseFunctionCallSideEffects();
|
||||
|
||||
calls.emplace_back(move(call));
|
||||
calls.emplace_back(std::move(call));
|
||||
}
|
||||
}
|
||||
catch (TestParserError const& _e)
|
||||
|
||||
Reference in New Issue
Block a user