Fixed cppcheck warnings
3 files changed