fix a compile warning

const qualifiers on return types make no sense and will trigger a compile warning:

    warning: type qualifiers ignored on function return type [-Wignored-qualifiers]