Add missing const specifier to a const method.