Mark getContentOffset method as const