In statsdialog.cpp fix initialization iEnd
In preferences.h now argument is const references
Merge pull request #1250 from botanegg/cppcheck

Corrections from running cppcheck v2.