Move code to initializer list

This commit is contained in:
Andreas Fabri 2023-11-14 13:26:08 +00:00
parent d9dcc9c2ed
commit 710ef72e27
1 changed files with 4 additions and 1 deletions

View File

@ -33,7 +33,10 @@ template <class R_> class Sphere_segment_rep
typedef Sphere_segment_rep<R_> Rep;
friend class Sphere_segment<R_>;
public:
Sphere_segment_rep() { ps_ = pt_ = Point(); c_ = Circle(); }
Sphere_segment_rep() :
ps_(), pt_(), c_()
{}
Sphere_segment_rep(const Point& p1, const Point& p2,
bool shorter_arc=true) :