Clean functions returning by const values

The codebase contains multiple functions returning by const-value.
This patch is a small cleanup making those function returns
by value instead, removing the const specifier.

closes https://github.com/official-stockfish/Stockfish/pull/3328

No functional change
This commit is contained in:
Antoine Champion
2021-01-30 09:50:04 +01:00
committed by Joost VandeVondele
parent 0f3f5d85fb
commit 9b1274aba3
7 changed files with 9 additions and 8 deletions

View File

@@ -55,7 +55,7 @@ inline Bitboard safe_destination(Square s, int step) {
/// Bitboards::pretty() returns an ASCII representation of a bitboard suitable
/// to be printed to standard output. Useful for debugging.
const std::string Bitboards::pretty(Bitboard b) {
std::string Bitboards::pretty(Bitboard b) {
std::string s = "+---+---+---+---+---+---+---+---+\n";