Replace Qt foreach to range-based for
make format