Modernize code (using auto)

2 jobs for master in 8 minutes and 15 seconds (queued for 30 minutes and 8 seconds)
Status Job ID Name Coverage
  Build
passed #75730
build_clazy_clang_tidy

00:04:37

passed #75729
linux kf5-qt5 qt5.12

00:03:38

70.0%