Use const references instead of pointers to references that are
never modified. No functional change.