Cppcheck warnings. Refs #6142