fix build after for_ was changed to use auto.
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Thu, 20 Oct 2011 21:43:38 +0000 (23:43 +0200)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Thu, 20 Oct 2011 21:43:38 +0000 (23:43 +0200)
commite12b99a648396493f380de43c2dd101ddfc68709
treec75812a55eda52870e932b3374682e3a32dda693
parent40fd05238230487b416dcffbc678d291ea9a19a7
fix build after for_ was changed to use auto.

the construct for_(i, 0UL, v.size()) did not build becasue
size_t is not 0UL on all systems.

Replacing 0 with a size_t cast or the container size_type would
defeat the purpose of using a for_ construct.

For iterations where the index is needed a classic for is shorter.

Also the question remains open whether for_ is needed now that C++11
provides the for (auto x : container) construct.
tests/zypp/PoolQuery_test.cc
tests/zypp/Selectable_test.cc