From: Marco Costalba Date: Fri, 8 Feb 2013 09:05:04 +0000 (+0100) Subject: Add const qualifer to go() X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=880726c13a393e70ddc358741e68cc28a546ae8c;hp=50a7200b18e96a6f0e2c2ee7fda017ea6f2f1c1f 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. --- diff --git a/src/uci.cpp b/src/uci.cpp index 5721e93f..10519bb1 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -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 searchMoves;