Fix broken last patch series
authorMarco Costalba <mcostalba@gmail.com>
Tue, 28 Dec 2010 09:16:53 +0000 (10:16 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Tue, 28 Dec 2010 12:01:14 +0000 (13:01 +0100)
commit5b0849431221b09499b9f55c901da249ffdcd566
tree7f3ea9dfe0655a50b617f23ffbbc882f81de7d2f
parent30c14fdc9532fc94217eba708653a188a9b24504
Fix broken last patch series

When a reference breaks things !

Here we take a reference (that is a pointer) to an
entry in a vector that changes below us --> BOOM !

References are essential but should be considered with
care in C++ because could lead to nasty surprises.

Restored functionality.

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