fix warning in Vertex_conflict_C2 with otherpnt

This commit is contained in:
Panagiotis Cheilaris 2015-06-10 10:11:32 +02:00
parent 142414c123
commit 5b413d92a4
1 changed files with 2 additions and 10 deletions

View File

@ -431,16 +431,8 @@ private:
Segment_2 seg = q.segment();
if (is_same_qsrc_p || is_same_qtrg_p) {
Point_2 otherpnt;
if (is_same_qsrc_p) {
otherpnt = seg.target();
} else if (is_same_qtrg_p) {
otherpnt = seg.source();
} else {
// unreachable
CGAL_assertion( false );
}
const Point_2 otherpnt =
is_same_qsrc_p ? seg.target() : seg.source();
lhor = compute_horizontal_side_line(
pnt, otherpnt,
is_positive_slope ?