Remove const from pointer that isn't used as a const.