getGains() should probably be const, which would make this redundant.

having const and non-const methods that do exactly the same thing is redundant and confusing.