X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=f05a114e51993088df0c20cc2b86dda2bbc5436f;hp=dfcce4970a67eb6910b38002464fe7dae687eeb7;hb=6390a3da9471da3e0e8755eceb11225fc3088836;hpb=f53aea45e3230239d358d4d35357c9ee6bf6fb54 diff --git a/src/uci.cpp b/src/uci.cpp index dfcce497..f05a114e 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -232,9 +232,7 @@ string UCI::value(Value v) { /// UCI::square() converts a Square to a string in algebraic notation (g1, a7, etc.) std::string UCI::square(Square s) { - - char sq[] = { char('a' + file_of(s)), char('1' + rank_of(s)), 0 }; // NULL terminated - return sq; + return std::string{ char('a' + file_of(s)), char('1' + rank_of(s)) }; }