diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-25 13:31:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-26 10:15:00 +0200 |
commit | bdc8fda4be875ff9cfa9c3f4b5e40284a8637374 (patch) | |
tree | 67eb55dcd1e9649e074e49ca0dd069920a2ae866 /sccomp/source | |
parent | b11268fadf76618ad37d27219b7f51255f8f8b5a (diff) |
loplugin:constmethod in sc
Change-Id: I78c4fb4acf21756f91582caee5e30e3ad1fc2ae4
Reviewed-on: https://gerrit.libreoffice.org/79543
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sccomp/source')
-rw-r--r-- | sccomp/source/solver/SwarmSolver.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sccomp/source/solver/SwarmSolver.cxx b/sccomp/source/solver/SwarmSolver.cxx index 6652127dc9b2..c15745cf7eee 100644 --- a/sccomp/source/solver/SwarmSolver.cxx +++ b/sccomp/source/solver/SwarmSolver.cxx @@ -273,7 +273,7 @@ private: public: double calculateFitness(std::vector<double> const& rVariables); - size_t getDimensionality(); + size_t getDimensionality() const; void initializeVariables(std::vector<double>& rVariables, std::mt19937& rGenerator); double clampVariable(size_t nVarIndex, double fValue); double boundVariable(size_t nVarIndex, double fValue); @@ -396,7 +396,7 @@ double SwarmSolver::boundVariable(size_t nVarIndex, double fValue) return fResult; } -size_t SwarmSolver::getDimensionality() { return maVariables.getLength(); } +size_t SwarmSolver::getDimensionality() const { return maVariables.getLength(); } bool SwarmSolver::doesViolateConstraints() { |