mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
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:
committed by
Joost VandeVondele
parent
0f3f5d85fb
commit
9b1274aba3
@@ -408,7 +408,7 @@ Position& Position::set(const string& code, Color c, StateInfo* si) {
|
||||
/// Position::fen() returns a FEN representation of the position. In case of
|
||||
/// Chess960 the Shredder-FEN notation is used. This is mainly a debugging function.
|
||||
|
||||
const string Position::fen() const {
|
||||
string Position::fen() const {
|
||||
|
||||
int emptyCnt;
|
||||
std::ostringstream ss;
|
||||
|
||||
Reference in New Issue
Block a user