X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fuci.cpp;h=30c1fa0cce0cfc448dc4cf96ae78684c324f4a0e;hb=4f4e652ecaf8d42a9bd1092f72c3704435ddba12;hp=eb158e723e4e37d2d6b9c71e15d2002099165dd2;hpb=e9e7a7b83f78b5c7d29f69083589b449d9b52390;p=stockfish diff --git a/src/uci.cpp b/src/uci.cpp index eb158e72..30c1fa0c 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -160,7 +160,7 @@ namespace { uint64_t num, nodes = 0, cnt = 1; vector list = setup_bench(pos, args); - num = count_if(list.begin(), list.end(), [](string s) { return s.find("go ") == 0 || s.find("eval") == 0; }); + num = count_if(list.begin(), list.end(), [](const string& s) { return s.find("go ") == 0 || s.find("eval") == 0; }); TimePoint elapsed = now();