cppcheck warnings. Refs #6142