From a766b2684bbfdce5094027d7af0fd8f1abde37dc Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Thu, 20 Aug 2026 18:10:17 +0200 Subject: [PATCH] cid#1697486: Variable copied when it could be moved and cid#1697492: Variable copied when it could be moved cid#1697489: Variable copied when it could be moved Change-Id: I8a7027492db6faa7264e0c477d42c84406dbf7be Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209410 Reviewed-by: Xisco Fauli Tested-by: Jenkins --- sc/source/solver/SlpSolver.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sc/source/solver/SlpSolver.cxx b/sc/source/solver/SlpSolver.cxx index 8a855c845e8b..52ecb8862b0c 100644 --- a/sc/source/solver/SlpSolver.cxx +++ b/sc/source/solver/SlpSolver.cxx @@ -610,9 +610,9 @@ void SAL_CALL SLPSolver::solve() } updateCurvature(aB, aPointChange, aGradientChange); - aX = aTrial; - aGradient = aNewGradient; - aCells = aCellsNew; + aX = std::move(aTrial); + aGradient = std::move(aNewGradient); + aCells = std::move(aCellsNew); fMerit = fMeritTrial; double fRatio = fPredicted > fMinPredictedReduction ? fActual / fPredicted : 1.0;