X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=72eda4a0958a29d3d15957711944508b9732a18a;hp=adba98da2087215559467bd8da79042b02aba6c2;hb=c08e05b494d54c7fc28621204382d77d3595d436;hpb=9afa1d73306cb98e95acec5daf4efd65e592ceff diff --git a/src/uci.cpp b/src/uci.cpp index adba98da..72eda4a0 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -28,8 +28,8 @@ #include "position.h" #include "search.h" #include "thread.h" -#include "tt.h" #include "timeman.h" +#include "tt.h" #include "uci.h" #include "syzygy/tbprobe.h" @@ -89,11 +89,11 @@ namespace { // Read option name (can contain spaces) while (is >> token && token != "value") - name += string(" ", name.empty() ? 0 : 1) + token; + name += (name.empty() ? "" : " ") + token; // Read option value (can contain spaces) while (is >> token) - value += string(" ", value.empty() ? 0 : 1) + token; + value += (value.empty() ? "" : " ") + token; if (Options.count(name)) Options[name] = value;