Make parameters const too.

(Following on from loplugin:passstringbyref)

Change-Id: I9100f51aa7420b237c84de7d36d2374ac6612d00