Fiexed some cppcheck warnings

7 jobs for cppcheck_warnings in 51 minutes and 19 seconds
Status Name Job ID Coverage
  Test
passed clang-c++11-Qt5 #24504
Linux MultiThreads

00:10:57

passed cppcheck #24505
Linux MultiThreads

00:03:16

passed gcc-c++11-Qt5 #24503
Linux

00:02:39

passed Mac-Cpp11 #24509
Apple

00:37:35

passed VS2013-Qt-5.5.1-x64 #24508
VS2013 Qt551

00:24:54

passed VS2015-Qt-5.6.0-x32 #24507
VS2015 Qt56

00:22:34

passed VS2015-Qt-5.6.0-x64 #24506
VS2015 Qt56

00:26:24