Merge branch 'clean-cppcheck' into 'master'

cppcheck fixes

See merge request !59
9 jobs for master in 4 minutes and 21 seconds (queued for 2 seconds)
Status Name Job ID Coverage
  Test
passed clang-c++11 #75569
Linux

00:03:52

passed cppcheck #75571
Linux

00:02:22

passed doc #75576
Linux

00:00:10

passed gcc-c++11 #75568
Linux

00:04:21

passed macos-c++11 #75570
Apple

00:02:58

passed VS2015-32-bit #75575
VS2015

00:01:16

passed VS2015-64-bit #75574
VS2015

00:01:23

passed VS2017-32-bit #75573
VS2017

00:01:09

passed VS2017-64-bit #75572
VS2015

00:01:17