Fix cppcheck warnings.

4 jobs for develop in 14 minutes and 50 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #18077
mistral xen
build-gcc64

00:03:09

passed #18078
mistral xen
build-intel18

00:09:26

 
  Check
passed #18079
mistral xen
check-gcc64

00:04:59

passed #18080
mistral xen
check-intel18

00:05:23