Modernize code (using auto)

2 jobs for master in 7 minutes and 59 seconds (queued for 45 minutes and 47 seconds)
Status Job ID Name Coverage
  Build
passed #75682
build_clazy_clang_tidy

00:04:09

passed #75681
linux kf5-qt5 qt5.12

00:03:50

76.0%