From 1a94ae9e4757bfb326a855eeede10196d8f1ffc5 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Wed, 12 May 2021 11:50:35 -0500 Subject: Cleanup: Simplify public/private specifiers By rearranging a few variables we can remove redundant specifiers --- source/blender/blenkernel/BKE_spline.hh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'source/blender/blenkernel/BKE_spline.hh') diff --git a/source/blender/blenkernel/BKE_spline.hh b/source/blender/blenkernel/BKE_spline.hh index f1ffeb664f5..54a8e97d5c6 100644 --- a/source/blender/blenkernel/BKE_spline.hh +++ b/source/blender/blenkernel/BKE_spline.hh @@ -64,11 +64,6 @@ class Spline { Poly, }; - protected: - Type type_; - bool is_cyclic_ = false; - - public: enum NormalCalculationMode { ZUp, Minimum, @@ -78,6 +73,9 @@ class Spline { NormalCalculationMode normal_mode; protected: + Type type_; + bool is_cyclic_ = false; + /** Direction of the spline at each evaluated point. */ mutable blender::Vector evaluated_tangents_cache_; mutable std::mutex tangent_cache_mutex_; @@ -99,7 +97,7 @@ class Spline { { } Spline(Spline &other) - : type_(other.type_), is_cyclic_(other.is_cyclic_), normal_mode(other.normal_mode) + : normal_mode(other.normal_mode), type_(other.type_), is_cyclic_(other.is_cyclic_) { } @@ -430,12 +428,10 @@ class NURBSpline final : public Spline { * points does not change it. */ class PolySpline final : public Spline { - public: blender::Vector positions_; blender::Vector radii_; blender::Vector tilts_; - private: public: SplinePtr copy() const final; PolySpline() : Spline(Type::Poly) -- cgit v1.2.3