Use a reference instead of making an unnecessary copy. Also use 'const'.