for_each replaced with standard loop structure since GDB exits unexpectedly on looping it, need to be investigated [Qt Creator 2.8.81]