From e169490c78b5ff3e88d1b5a231ab02d66fffff5b Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Wed, 30 Sep 2020 10:03:30 +0200 Subject: [PATCH] Replace fix for Point_2(Origin) --- .../include/CGAL/Intersections_2/Line_2_Ray_2.h | 2 +- Kernel_23/examples/Kernel_23/MyPointC2.h | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Intersections_2/include/CGAL/Intersections_2/Line_2_Ray_2.h b/Intersections_2/include/CGAL/Intersections_2/Line_2_Ray_2.h index 5d052dca5d2..eada9a07ec2 100644 --- a/Intersections_2/include/CGAL/Intersections_2/Line_2_Ray_2.h +++ b/Intersections_2/include/CGAL/Intersections_2/Line_2_Ray_2.h @@ -40,7 +40,7 @@ public: Ray_2_Line_2_pair(typename K::Ray_2 const *ray, typename K::Line_2 const *line) : _ray(ray), _line(line), _result(NOT_COMPUTED_YET), - _intersection_point(typename K::Point_2(ORIGIN)) + _intersection_point(K().construct_point_2_object()(ORIGIN)) {} Intersection_results intersection_type() const; diff --git a/Kernel_23/examples/Kernel_23/MyPointC2.h b/Kernel_23/examples/Kernel_23/MyPointC2.h index 8040b9abe87..e4b2f3ff0ce 100644 --- a/Kernel_23/examples/Kernel_23/MyPointC2.h +++ b/Kernel_23/examples/Kernel_23/MyPointC2.h @@ -21,14 +21,6 @@ public: *(vec+1) = 0; } - MyPointC2(const CGAL::Origin &) - :col(0) - { - *vec = 0; - *(vec+1) = 0; - } - - MyPointC2(const double x, const double y, int c = 0) : col(c) {