[poincare] Add some missing std::move

This commit is contained in:
Romain Goyet
2020-04-05 15:27:30 -04:00
committed by LeaNumworks
parent 84f6b179de
commit bfb39618e1
2 changed files with 2 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ Evaluation<T> NthRootNode::templatedApproximate(Context * context, Preferences::
// root(x, q) with q integer and x real
Complex<T> result = PowerNode::computeNotPrincipalRealRootOfRationalPow(basec, (T)1.0, indexc.real());
if (!result.isUndefined()) {
return result;
return std::move(result);
}
}
result = PowerNode::compute(basec, std::complex<T>(1.0)/(indexc), complexFormat);

View File

@@ -325,7 +325,7 @@ template<typename T> Evaluation<T> PowerNode::templatedApproximate(Context * con
}
Complex<T> result = computeNotPrincipalRealRootOfRationalPow(c, p, q);
if (!result.isUndefined()) {
return result;
return std::move(result);
}
}
defaultApproximation: