Fix warning on const return by value.