Use const reference in for each loops as much as possible
Use const reference in for each loops as much as possible

CCMAIL: 180cda4bf9bf9a56f203904f11042f179b53fd9a@gmail.com
Reason: When not using POD types (int, double, pointer, ...) you should use
const & for your foreach variables. There are two reasons for this: 1) Prevents
you from the mistake of writing foreach loops that modify the list, that is
'foreach(Foo f, list) f.a = f.b = f.c = 0;' compiles but does not modify the
contents of list 2) Saves a copy constructor call for each of the list elements

KDE/gluon,KDE/gluon,KDE/gluon,KDE/gluon