PetScan::extract_for: explicitly keep track of when iterator is virtual
commitc5656d20bec3475e4e2feb5ad688094f74d1e279
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 19 Jan 2012 13:19:14 +0000 (19 14:19 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 6 Mar 2012 11:53:41 +0000 (6 12:53 +0100)
tree0cb1a815a08a8be41ea04e5adf65d060cd7453f0
parent1f1431477ba586a92b83ee65d34d775bc1c42826
PetScan::extract_for: explicitly keep track of when iterator is virtual

The wrapping map is only computed when we use a virtual iterator,
so we need to make sure that we are in fact using a virtual iterator
before we use that map.
The original condition was probably correct, but not very obvious.
Make it explicit so that we can more easily change the code later.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
scan.cc