mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
fix: CodeQL warnings in `machine_learning/a_st...
...`ar_search.cpp`
This commit is contained in:
parent
0a596dd7aa
commit
8adaec948c
@ -305,7 +305,7 @@ class AyStarSearch {
|
||||
* @brief constructor having Puzzle as parameter
|
||||
* @param A a puzzle object
|
||||
*/
|
||||
explicit Info(Puzzle A) : state(std::move(A)) {}
|
||||
explicit Info(const Puzzle &A) : state(std::move(A)) {}
|
||||
|
||||
/**
|
||||
* @brief constructor having three parameters
|
||||
@ -313,7 +313,7 @@ class AyStarSearch {
|
||||
* @param h_value heuristic value of this puzzle object
|
||||
* @param depth the depth at which this node was found during traversal
|
||||
*/
|
||||
Info(Puzzle A, size_t h_value, size_t d)
|
||||
Info(const Puzzle &A, size_t h_value, size_t d)
|
||||
: state(std::move(A)), heuristic_value(h_value), depth(d) {}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user