fix some cppcheck warnings
Merge pull request #12 from KroArtem/master

fix some cppcheck warnings