Use const reference instead of copy initialization where possible
Auto-correction using "clang-tidy -fix ...".