Fix a warning from gcc about one of the const keywords being ignored. This happens because the returned type is not a reference contrary to the methods above.