Fix unnecessary const return warning.