Add const to a method I missed in the previous commit.