MovePicker: use const reference instead of pointers

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2008-10-16 16:21:36 +02:00
parent 486ec580f9
commit 2943e1ca31
2 changed files with 34 additions and 36 deletions

View File

@@ -59,8 +59,7 @@ public:
PH_STOP
};
MovePicker(Position &p, bool pvnode, Move ttm, Move mk, Move k1, Move k2,
Depth dpth);
MovePicker(const Position& p, bool pvnode, Move ttm, Move mk, Move k1, Move k2, Depth d);
Move get_next_move();
Move get_next_move(Lock &lock);
int number_of_moves() const;
@@ -77,7 +76,7 @@ private:
void score_qcaptures();
Move pick_move_from_list();
Position *pos;
const Position& pos;
Move ttMove, mateKiller, killer1, killer2;
Bitboard pinned, dc;
MoveStack moves[256], badCaptures[64];