cppcheck fix. refs #6484