From ba6f72ac3fccd76f3e11aa1262e108abc3b59a0b Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Tue, 10 Aug 2010 11:44:18 +0000 Subject: [PATCH] Initialize in the initializer list --- .../CGAL/Reconstruction_triangulation_3.h | 37 ++++--------------- 1 file changed, 8 insertions(+), 29 deletions(-) diff --git a/Surface_reconstruction_points_3/include/CGAL/Reconstruction_triangulation_3.h b/Surface_reconstruction_points_3/include/CGAL/Reconstruction_triangulation_3.h index 66aaa0de8ff..1c9c1f7693e 100644 --- a/Surface_reconstruction_points_3/include/CGAL/Reconstruction_triangulation_3.h +++ b/Surface_reconstruction_points_3/include/CGAL/Reconstruction_triangulation_3.h @@ -89,41 +89,20 @@ private: public: Reconstruction_vertex_base_3() - : Vb() - { - m_f = (FT)0.0; - m_type = 0; - m_constrained = false; - m_index = 0; - } + : Vb(), m_f(FT(0.0)), m_constrained(false), m_type(0), m_index(0) + {} Reconstruction_vertex_base_3(const Point_with_normal& p) - : Vb(p) - { - m_f = 0.0f; - m_type = 0; - m_constrained = false; - m_index = 0; - - } + : Vb(p), m_f(FT(0.0)), m_constrained(false), m_type(0), m_index(0) + {} Reconstruction_vertex_base_3(const Point_with_normal& p, Cell_handle c) - : Vb(p,c) - { - m_f = (FT)0.0; - m_type = 0; - m_constrained = false; - m_index = 0; - } + : Vb(p,c), m_f(FT(0.0)), m_constrained(false), m_type(0), m_index(0) + {} Reconstruction_vertex_base_3(Cell_handle c) - : Vb(c) - { - m_f = (FT)0.0; - m_type = 0; - m_constrained = false; - m_index = 0; - } + : Vb(c), m_f(FT(0.0)), m_constrained(false), m_type(0), m_index(0) + {} /// Is vertex constrained, i.e. /// does it contribute to the right or left member of the linear system?