diff options
Diffstat (limited to 'sccomp/source/solver/LpsolveSolver.cxx')
-rw-r--r-- | sccomp/source/solver/LpsolveSolver.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sccomp/source/solver/LpsolveSolver.cxx b/sccomp/source/solver/LpsolveSolver.cxx index 8a6d32856760..6a6c55d961ad 100644 --- a/sccomp/source/solver/LpsolveSolver.cxx +++ b/sccomp/source/solver/LpsolveSolver.cxx @@ -100,6 +100,7 @@ void SAL_CALL LpsolveSolver::solve() // collect variables in vector (?) std::vector<table::CellAddress> aVariableCells; + aVariableCells.reserve(maVariables.getLength()); for (sal_Int32 nPos=0; nPos<maVariables.getLength(); nPos++) aVariableCells.push_back( maVariables[nPos] ); size_t nVariables = aVariableCells.size(); |