Merge branch 'sonar-bugs' into 'develop'

Fix some sonar qube issues

See merge request !542
23 jobs for develop in 80 minutes and 29 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Precheck
passed #7731
fast-build

00:05:20

 
  Prepare
passed #7733
centos-xdk-prepare

00:04:08

passed #7734
macos
macos-xdk-prepare

00:01:41

passed #7732
ubuntu-xdk-prepare

00:00:43

passed #7735
windows10
windows-10-prepare

00:01:27

passed #7736
windows8
windows-8-prepare

00:01:30

 
  Build
passed #7739
centos-xdk-build

00:42:52

passed #7737
debian-build

00:28:39

passed #7740
macos
macos-xdk-build

00:26:29

passed #7738
ubuntu-xdk-build

00:34:46

passed #7743
ubuntu-xdk-qa-code-coverage

00:46:35

passed #7744
ubuntu-xdk-qa-static-analysis

00:39:11

passed #7741
windows10
windows-10-build

00:24:53

passed #7742
windows8
windows-8-build

00:34:08

 
  Report
passed #7745
ubuntu-xdk-report

00:03:56

 
  Deploy
passed #7746
deploy
deploy

00:20:23

 
  External
passed cdash:debian-unstable-gcc

passed cdash:otb-centos-superbuild-base

passed cdash:otb-macos-superbuild

passed cdash:ubuntu-18.04-fast

passed cdash:ubuntu-18.04-llvm-xdk

passed cdash:windows-10-x64-vc14.0

passed cdash:windows-8.1-x86-vc14.0