mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-18 16:16:23 +08:00
Add const qualifer to go()
Obsolete renmant of when position was directly passed to the search instead of being copied for the main thread as is now. From Jundery. No functional change.
This commit is contained in:
@@ -44,7 +44,7 @@ namespace {
|
||||
|
||||
void set_option(istringstream& up);
|
||||
void set_position(Position& pos, istringstream& up);
|
||||
void go(Position& pos, istringstream& up);
|
||||
void go(const Position& pos, istringstream& up);
|
||||
}
|
||||
|
||||
|
||||
@@ -182,7 +182,7 @@ namespace {
|
||||
// the thinking time and other parameters from the input string, and starts
|
||||
// the search.
|
||||
|
||||
void go(Position& pos, istringstream& is) {
|
||||
void go(const Position& pos, istringstream& is) {
|
||||
|
||||
Search::LimitsType limits;
|
||||
vector<Move> searchMoves;
|
||||
|
||||
Reference in New Issue
Block a user