summaryrefslogtreecommitdiff
path: root/sccomp/source/solver/LpsolveSolver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sccomp/source/solver/LpsolveSolver.cxx')
-rw-r--r--sccomp/source/solver/LpsolveSolver.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sccomp/source/solver/LpsolveSolver.cxx b/sccomp/source/solver/LpsolveSolver.cxx
index b1ab44e66350..01f4bfba2bb1 100644
--- a/sccomp/source/solver/LpsolveSolver.cxx
+++ b/sccomp/source/solver/LpsolveSolver.cxx
@@ -107,7 +107,7 @@ void SAL_CALL LpsolveSolver::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
@@ -192,7 +192,7 @@ void SAL_CALL LpsolveSolver::solve()
set_add_rowmode(lp, TRUE);
- for (const auto& rConstr : maConstraints)
+ for (const auto& rConstr : std::as_const(maConstraints))
{
// integer constraints are set later
sheet::SolverConstraintOperator eOp = rConstr.Operator;
@@ -260,7 +260,7 @@ void SAL_CALL LpsolveSolver::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 ||