Silence compiler warnings (-Wignored-qualifiers)

Remove the const from return type of the line() function since it has no
effect.