Add more const modifiers. (GH-26691)

9 files changed