Add std:: qualifier to move() calls

This commit is contained in:
Marenz
2022-08-30 11:12:15 +02:00
parent 19e3c7339e
commit f7cc29bec1
111 changed files with 362 additions and 362 deletions
+7 -7
View File
@@ -113,7 +113,7 @@ pair<string, string> IRGenerator::run(
}
asmStack.optimize();
return {move(ir), asmStack.print(m_context.soliditySourceProvider())};
return {std::move(ir), asmStack.print(m_context.soliditySourceProvider())};
}
string IRGenerator::generate(
@@ -214,7 +214,7 @@ string IRGenerator::generate(
// NOTE: Function pointers can be passed from creation code via storage variables. We need to
// get all the functions they could point to into the dispatch functions even if they're never
// referenced by name in the deployed code.
m_context.initializeInternalDispatch(move(internalDispatchMap));
m_context.initializeInternalDispatch(std::move(internalDispatchMap));
// Do not register immutables to avoid assignment.
t("DeployedObject", IRNames::deployedObject(_contract));
@@ -236,8 +236,8 @@ string IRGenerator::generate(
solAssert(_contract.annotation().creationCallGraph->get() != nullptr, "");
solAssert(_contract.annotation().deployedCallGraph->get() != nullptr, "");
verifyCallGraph(collectReachableCallables(**_contract.annotation().creationCallGraph), move(creationFunctionList));
verifyCallGraph(collectReachableCallables(**_contract.annotation().deployedCallGraph), move(deployedFunctionList));
verifyCallGraph(collectReachableCallables(**_contract.annotation().creationCallGraph), std::move(creationFunctionList));
verifyCallGraph(collectReachableCallables(**_contract.annotation().deployedCallGraph), std::move(deployedFunctionList));
return t.render();
}
@@ -317,7 +317,7 @@ InternalDispatchMap IRGenerator::generateInternalDispatchFunctions(ContractDefin
});
}
templ("cases", move(cases));
templ("cases", std::move(cases));
return templ.render();
});
}
@@ -944,7 +944,7 @@ void IRGenerator::generateConstructors(ContractDefinition const& _contract)
generateFunctionWithModifierInner(*constructor);
}
}
t("userDefinedConstructorBody", move(body));
t("userDefinedConstructorBody", std::move(body));
return t.render();
});
@@ -1117,7 +1117,7 @@ void IRGenerator::resetContext(ContractDefinition const& _contract, ExecutionCon
m_context.soliditySourceProvider()
);
newContext.copyFunctionIDsFrom(m_context);
m_context = move(newContext);
m_context = std::move(newContext);
m_context.setMostDerivedContract(_contract);
for (auto const& var: ContractType(_contract).stateVariables())