san.cpp pass position as constant reference
authorMarco Costalba <mcostalba@gmail.com>
Sun, 30 Nov 2008 00:25:16 +0000 (01:25 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 30 Nov 2008 00:25:16 +0000 (01:25 +0100)
commit08265aef81d63b1ccf22e1e1818d0edb64e0528e
tree6ea682155016e5f29b240a840748babd5f6f9165
parent9d1e4d041d97d2a11a430a3bb6fa360fca31e69f
san.cpp pass position as constant reference

Make a copy of the position when needed instead
of passing as a reference. It is cleaner and
let us to simplify also Position::print()

A small space inflate while there.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/position.cpp
src/san.cpp
src/san.h