From ce85f329c34deafe228cb0b12a39095227631701 Mon Sep 17 00:00:00 2001 From: Simon Dold Date: Fri, 9 Feb 2024 17:42:02 +0100 Subject: [PATCH] [issue1082] reduce tox complaints. --- src/search/search_algorithms/eager_search.cc | 10 +++++----- src/search/search_algorithms/eager_search.h | 10 +++++----- .../search_algorithms/enforced_hill_climbing_search.cc | 4 ++-- .../search_algorithms/enforced_hill_climbing_search.h | 4 ++-- src/search/search_algorithms/lazy_search.cc | 4 ++-- src/search/search_algorithms/lazy_search.h | 4 ++-- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/search/search_algorithms/eager_search.cc b/src/search/search_algorithms/eager_search.cc index 0715fd8919..a15c90bd2a 100644 --- a/src/search/search_algorithms/eager_search.cc +++ b/src/search/search_algorithms/eager_search.cc @@ -20,12 +20,12 @@ using namespace std; namespace eager_search { EagerSearch::EagerSearch( - shared_ptr open, + const shared_ptr &open, bool reopen_closed, - shared_ptr f_eval, - vector> preferred, - shared_ptr pruning, - shared_ptr lazy_evaluator, + const shared_ptr &f_eval, + const vector> &preferred, + const shared_ptr &pruning, + const shared_ptr &lazy_evaluator, OperatorCost cost_type, int bound, double max_time, diff --git a/src/search/search_algorithms/eager_search.h b/src/search/search_algorithms/eager_search.h index 0057e5292c..7ddc5efbcd 100644 --- a/src/search/search_algorithms/eager_search.h +++ b/src/search/search_algorithms/eager_search.h @@ -38,12 +38,12 @@ class EagerSearch : public SearchAlgorithm { public: explicit EagerSearch( - std::shared_ptr open, + const std::shared_ptr &open, bool reopen_closed, - std::shared_ptr f_eval, - std::vector> preferred, - std::shared_ptr pruning, - std::shared_ptr lazy_evaluator, + const std::shared_ptr &f_eval, + const std::vector> &preferred, + const std::shared_ptr &pruning, + const std::shared_ptr &lazy_evaluator, OperatorCost cost_type, int bound, double max_time, diff --git a/src/search/search_algorithms/enforced_hill_climbing_search.cc b/src/search/search_algorithms/enforced_hill_climbing_search.cc index c4119e3283..f624cf5bd7 100644 --- a/src/search/search_algorithms/enforced_hill_climbing_search.cc +++ b/src/search/search_algorithms/enforced_hill_climbing_search.cc @@ -66,9 +66,9 @@ static shared_ptr create_ehc_open_list_factory( EnforcedHillClimbingSearch::EnforcedHillClimbingSearch( - shared_ptr h, + const shared_ptr &h, PreferredUsage preferred_usage, - vector> preferred, + const vector> &preferred, OperatorCost cost_type, int bound, double max_time, diff --git a/src/search/search_algorithms/enforced_hill_climbing_search.h b/src/search/search_algorithms/enforced_hill_climbing_search.h index 643b056223..fb1c7ca2a4 100644 --- a/src/search/search_algorithms/enforced_hill_climbing_search.h +++ b/src/search/search_algorithms/enforced_hill_climbing_search.h @@ -61,9 +61,9 @@ class EnforcedHillClimbingSearch : public SearchAlgorithm { public: EnforcedHillClimbingSearch( - std::shared_ptr h, + const std::shared_ptr &h, PreferredUsage preferred_usage, - std::vector> preferred, + const std::vector> &preferred, OperatorCost cost_type, int bound, double max_time, diff --git a/src/search/search_algorithms/lazy_search.cc b/src/search/search_algorithms/lazy_search.cc index 54ef63235d..e0525a3c0e 100644 --- a/src/search/search_algorithms/lazy_search.cc +++ b/src/search/search_algorithms/lazy_search.cc @@ -18,9 +18,9 @@ using namespace std; namespace lazy_search { LazySearch::LazySearch( - shared_ptr open, + const shared_ptr &open, bool reopen_closed, - vector> &preferred, + const vector> &preferred, bool randomize_successors, bool preferred_successors_first, int random_seed, diff --git a/src/search/search_algorithms/lazy_search.h b/src/search/search_algorithms/lazy_search.h index ed258d11ff..5977a5631b 100644 --- a/src/search/search_algorithms/lazy_search.h +++ b/src/search/search_algorithms/lazy_search.h @@ -50,9 +50,9 @@ class LazySearch : public SearchAlgorithm { public: LazySearch( - std::shared_ptr open, + const std::shared_ptr &open, bool reopen_closed, - std::vector> &evaluators, + const std::vector> &evaluators, bool randomize_successors, bool preferred_successors_first, int random_seed,