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
+1 -1
View File
@@ -64,7 +64,7 @@ protected:
Program optimisedProgram(Program _program) const
{
[[maybe_unused]] size_t originalSize = _program.codeSize(m_weights);
Program result = move(_program);
Program result = std::move(_program);
result.optimise(m_chromosome.optimisationSteps());
// Make sure that the program and the chromosome we have chosen are suitable for the test
+1 -1
View File
@@ -52,7 +52,7 @@ protected:
Program optimisedProgram(Program _program, string _abbreviatedOptimisationSteps) const
{
Program result = move(_program);
Program result = std::move(_program);
result.optimise(Chromosome::genesToSteps(_abbreviatedOptimisationSteps));
return result;
}
+1 -1
View File
@@ -30,7 +30,7 @@ using namespace solidity::phaser::test;
function<Mutation> phaser::test::wholeChromosomeReplacement(Chromosome _newChromosome)
{
return [_newChromosome = move(_newChromosome)](Chromosome const&) { return _newChromosome; };
return [_newChromosome = std::move(_newChromosome)](Chromosome const&) { return _newChromosome; };
}
function<Mutation> phaser::test::geneSubstitution(size_t _geneIndex, string _geneValue)