fix warnings by adding more const (GH-12924)

6 files changed