Replacing Q_FOREACH and BOOST_FOREACH with c++11 ranged-based for loops
Also fixed typos