update line end for cpp