cppcheck: fix variableScope
Merge pull request #21 from toxeus/fixScope

cppcheck: fix variableScope