From f23f9d38db7e0b586130af88c7424cc3d85bc2d2 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 15 Aug 2019 12:53:34 +0200 Subject: loplugin:sequenceloop in scaddins..scripting Change-Id: I25044332e107b630b257e48d95ee9272145ed344 Reviewed-on: https://gerrit.libreoffice.org/77524 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sccomp/source/solver/CoinMPSolver.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sccomp/source/solver/CoinMPSolver.cxx') diff --git a/sccomp/source/solver/CoinMPSolver.cxx b/sccomp/source/solver/CoinMPSolver.cxx index f7a357e11eb9..41d3601b114e 100644 --- a/sccomp/source/solver/CoinMPSolver.cxx +++ b/sccomp/source/solver/CoinMPSolver.cxx @@ -72,7 +72,7 @@ void SAL_CALL CoinMPSolver::solve() ScSolverCellHashMap aCellsHash; aCellsHash[maObjective].reserve( nVariables + 1 ); // objective function - for (const auto& rConstr : maConstraints) + for (const auto& rConstr : std::as_const(maConstraints)) { table::CellAddress aCellAddr = rConstr.Left; aCellsHash[aCellAddr].reserve( nVariables + 1 ); // constraints: left hand side @@ -255,7 +255,7 @@ void SAL_CALL CoinMPSolver::solve() // apply single-var integer constraints - for (const auto& rConstr : maConstraints) + for (const auto& rConstr : std::as_const(maConstraints)) { sheet::SolverConstraintOperator eOp = rConstr.Operator; if ( eOp == sheet::SolverConstraintOperator_INTEGER || -- cgit