Silence some cppcheck warnings about const variables not passed by reference.