@@ -93,7 +93,7 @@ namespace Clipper2Lib {
9393 if (splits) delete splits;
9494 // nb: don't delete the split pointers
9595 // as these are owned by ClipperBase's outrec_list_
96- };
96+ }
9797 };
9898
9999 // /////////////////////////////////////////////////////////////////
@@ -156,7 +156,7 @@ namespace Clipper2Lib {
156156 struct HorzJoin {
157157 OutPt* op1 = nullptr ;
158158 OutPt* op2 = nullptr ;
159- HorzJoin () {};
159+ HorzJoin () {}
160160 explicit HorzJoin (OutPt* ltr, OutPt* rtl) : op1(ltr), op2(rtl) { }
161161 };
162162
@@ -276,11 +276,11 @@ namespace Clipper2Lib {
276276 void AddPaths (const Paths64& paths, PathType polytype, bool is_open);
277277 public:
278278 virtual ~ClipperBase ();
279- int ErrorCode () const { return error_code_; };
280- void PreserveCollinear (bool val) { preserve_collinear_ = val; };
281- bool PreserveCollinear () const { return preserve_collinear_;};
282- void ReverseSolution (bool val) { reverse_solution_ = val; };
283- bool ReverseSolution () const { return reverse_solution_; };
279+ int ErrorCode () const { return error_code_; }
280+ void PreserveCollinear (bool val) { preserve_collinear_ = val; }
281+ bool PreserveCollinear () const { return preserve_collinear_;}
282+ void ReverseSolution (bool val) { reverse_solution_ = val; }
283+ bool ReverseSolution () const { return reverse_solution_; }
284284 void Clear ();
285285 void AddReuseableData (const ReuseableDataContainer64& reuseable_data);
286286#ifdef USINGZ
@@ -300,7 +300,7 @@ namespace Clipper2Lib {
300300 PolyPath* parent_;
301301 public:
302302 PolyPath (PolyPath* parent = nullptr ): parent_(parent){}
303- virtual ~PolyPath () {};
303+ virtual ~PolyPath () {}
304304 // https://en.cppreference.com/w/cpp/language/rule_of_three
305305 PolyPath (const PolyPath&) = delete ;
306306 PolyPath& operator =(const PolyPath&) = delete ;
@@ -371,7 +371,7 @@ namespace Clipper2Lib {
371371 return childs_.size ();
372372 }
373373
374- const Path64& Polygon () const { return polygon_; };
374+ const Path64& Polygon () const { return polygon_; }
375375
376376 double Area () const
377377 {
@@ -446,7 +446,7 @@ namespace Clipper2Lib {
446446 return childs_.size ();
447447 }
448448
449- const PathD& Polygon () const { return polygon_; };
449+ const PathD& Polygon () const { return polygon_; }
450450
451451 double Area () const
452452 {
@@ -537,7 +537,7 @@ namespace Clipper2Lib {
537537 }
538538
539539#ifdef USINGZ
540- void SetZCallback (ZCallbackD cb) { zCallbackD_ = cb; };
540+ void SetZCallback (ZCallbackD cb) { zCallbackD_ = cb; }
541541
542542 void ZCB (const Point64& e1bot, const Point64& e1top,
543543 const Point64& e2bot, const Point64& e2top, Point64& pt)
@@ -553,7 +553,7 @@ namespace Clipper2Lib {
553553 PointD e2t = PointD (e2top) * invScale_;
554554 zCallbackD_ (e1b,e1t, e2b, e2t, tmp);
555555 pt.z = tmp.z ; // only update 'z'
556- };
556+ }
557557
558558 void CheckCallback ()
559559 {
0 commit comments