From 880726c13a393e70ddc358741e68cc28a546ae8c Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Fri, 8 Feb 2013 10:05:04 +0100 Subject: [PATCH 1/1] 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. --- src/uci.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2