From: mstembera Date: Mon, 7 Sep 2015 19:17:39 +0000 (+0100) Subject: Minor clean up of some function parameters X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=3e2591d83c285597a7400c79b61ab9dc38875163 Minor clean up of some function parameters No function change Resolves #416 --- diff --git a/src/benchmark.cpp b/src/benchmark.cpp index f58d82e2..5c4c4e36 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -26,7 +26,6 @@ #include "position.h" #include "search.h" #include "thread.h" -#include "tt.h" #include "uci.h" using namespace std; diff --git a/src/evaluate.cpp b/src/evaluate.cpp index ae85476b..383d9e62 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -250,7 +250,7 @@ namespace { // evaluate_pieces() assigns bonuses and penalties to the pieces of a given color template - Score evaluate_pieces(const Position& pos, EvalInfo& ei, Score* mobility, Bitboard* mobilityArea) { + Score evaluate_pieces(const Position& pos, EvalInfo& ei, Score* mobility, const Bitboard* mobilityArea) { Bitboard b; Square s; @@ -358,9 +358,9 @@ namespace { } template<> - Score evaluate_pieces(const Position&, EvalInfo&, Score*, Bitboard*) { return SCORE_ZERO; } + Score evaluate_pieces(const Position&, EvalInfo&, Score*, const Bitboard*) { return SCORE_ZERO; } template<> - Score evaluate_pieces(const Position&, EvalInfo&, Score*, Bitboard*) { return SCORE_ZERO; } + Score evaluate_pieces(const Position&, EvalInfo&, Score*, const Bitboard*) { return SCORE_ZERO; } // evaluate_king() assigns bonuses and penalties to a king of a given color diff --git a/src/position.cpp b/src/position.cpp index 50d1f170..c221c749 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -57,7 +57,7 @@ const string PieceToChar(" PNBRQK pnbrqk"); // from the bitboards and scan for new X-ray attacks behind it. template -PieceType min_attacker(const Bitboard* bb, const Square& to, const Bitboard& stmAttackers, +PieceType min_attacker(const Bitboard* bb, Square to, Bitboard stmAttackers, Bitboard& occupied, Bitboard& attackers) { Bitboard b = stmAttackers & bb[Pt]; @@ -77,7 +77,7 @@ PieceType min_attacker(const Bitboard* bb, const Square& to, const Bitboard& stm } template<> -PieceType min_attacker(const Bitboard*, const Square&, const Bitboard&, Bitboard&, Bitboard&) { +PieceType min_attacker(const Bitboard*, Square, Bitboard, Bitboard&, Bitboard&) { return KING; // No need to update bitboards: it is the last cycle }