sc/source/ui/unoobj/solveruno.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 32fccb862ff54558895b147e387bfa048d4dea17 Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Sat Sep 28 11:26:00 2024 +0200 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Sat Sep 28 13:33:11 2024 +0200 cid#1620317 COPY_INSTEAD_OF_MOVE Change-Id: I7d31cf2a977cb095a6d3cd89f9cadf82bea3bddd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174099 Reviewed-by: Julien Nabet <serval2...@yahoo.fr> Tested-by: Jenkins diff --git a/sc/source/ui/unoobj/solveruno.cxx b/sc/source/ui/unoobj/solveruno.cxx index 09b5dcac8b0c..7257b109edd3 100644 --- a/sc/source/ui/unoobj/solveruno.cxx +++ b/sc/source/ui/unoobj/solveruno.cxx @@ -535,7 +535,7 @@ uno::Sequence<sheet::ModelConstraint> SAL_CALL ScSolverSettings::getConstraints( // Adds the constraint to the sequence aRet.realloc(nCount + 1); auto pArrConstraints = aRet.getArray(); - pArrConstraints[nCount] = aConstraint; + pArrConstraints[nCount] = std::move(aConstraint); nCount++; } commit 6a2333c1663d862dec7b3e0450148c31afd83ca5 Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Sat Sep 28 11:22:32 2024 +0200 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Sat Sep 28 13:33:02 2024 +0200 cid#1620321 COPY_INSTEAD_OF_MOVE Change-Id: I9030fafe12bb48d43049493102de23ca8212cd9a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174087 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2...@yahoo.fr> diff --git a/sc/source/ui/unoobj/solveruno.cxx b/sc/source/ui/unoobj/solveruno.cxx index 4151e637cf42..09b5dcac8b0c 100644 --- a/sc/source/ui/unoobj/solveruno.cxx +++ b/sc/source/ui/unoobj/solveruno.cxx @@ -620,7 +620,7 @@ ScSolverSettings::setConstraints(const uno::Sequence<sheet::ModelConstraint>& aC vRetConstraints.push_back(aNewConst); } - m_pSettings->SetConstraints(vRetConstraints); + m_pSettings->SetConstraints(std::move(vRetConstraints)); } sal_Int32 SAL_CALL ScSolverSettings::getConstraintCount()