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 Job ID Name Coverage
  Test
passed #75575
VS2015
VS2015-32-bit

00:01:16

passed #75574
VS2015
VS2015-64-bit

00:01:23

passed #75573
VS2017
VS2017-32-bit

00:01:09

passed #75572
VS2015
VS2017-64-bit

00:01:17

passed #75569
Linux
clang-c++11

00:03:52

passed #75571
Linux
cppcheck

00:02:22

passed #75576
Linux
doc

00:00:10

passed #75568
Linux
gcc-c++11

00:04:21

passed #75570
Apple
macos-c++11

00:02:58