From b96b537ed137c4c6b291c3e71ea0c064d6e00ed3 Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Tue, 10 Sep 2024 16:47:28 +0200 Subject: [PATCH] fix(nbhood): make accessors const --- mo/src/problems/partition/moBinaryPartition.h | 4 ++-- mo/src/problems/partition/moBinaryPartitionSwapNeighborhood.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mo/src/problems/partition/moBinaryPartition.h b/mo/src/problems/partition/moBinaryPartition.h index 3b3f478e9..df5fed9fa 100644 --- a/mo/src/problems/partition/moBinaryPartition.h +++ b/mo/src/problems/partition/moBinaryPartition.h @@ -62,7 +62,7 @@ class moBinaryPartition : public EO * You are responsible for making it consistent after instantiation. * * @warning If you do not fill at least the @ref rejected set, - * errors will be raised whe trying to @ref select or @ref reject. + * errors will be raised when trying to @ref select or @ref reject. */ moBinaryPartition() { } @@ -127,7 +127,7 @@ class moBinaryPartition : public EO std::ostream_iterator(out, " ")); // Values. } - //! Convenience function to only render the fitess and the selected atoms (and not the rejected ones). + //! Convenience function to only render the fitness and the selected atoms (and not the rejected ones). std::string str() const { std::ostringstream msg; diff --git a/mo/src/problems/partition/moBinaryPartitionSwapNeighborhood.h b/mo/src/problems/partition/moBinaryPartitionSwapNeighborhood.h index be677d0e2..f91b252da 100644 --- a/mo/src/problems/partition/moBinaryPartitionSwapNeighborhood.h +++ b/mo/src/problems/partition/moBinaryPartitionSwapNeighborhood.h @@ -31,7 +31,7 @@ class moBinaryPartitionSwapNeighborhood : public moNeighborhood