diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-08-11 10:31:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-11 10:31:04 +0200 |
commit | 306c0471f7e1450340823dbd4a72b183d486c512 (patch) | |
tree | abe207af243ba9b2090f5e059bbc08f81876d7e3 /core/math/bsp_tree.cpp | |
parent | 8e6768c963b0ed825e4a4dbf3aeee5907168d697 (diff) | |
parent | 6d112a68b685cde609d0d90b2c57f2db6a7b9df6 (diff) | |
download | redot-engine-306c0471f7e1450340823dbd4a72b183d486c512.tar.gz |
Merge pull request #9987 from Rubonnek/move-members-to-initilization-list
Moved member variables from constructor to initialization list
Diffstat (limited to 'core/math/bsp_tree.cpp')
-rw-r--r-- | core/math/bsp_tree.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/core/math/bsp_tree.cpp b/core/math/bsp_tree.cpp index 327a6017c3..e22bc2b05e 100644 --- a/core/math/bsp_tree.cpp +++ b/core/math/bsp_tree.cpp @@ -577,12 +577,11 @@ BSP_Tree::BSP_Tree(const PoolVector<Face3> &p_faces, real_t p_error_radius) { error_radius = p_error_radius; } -BSP_Tree::BSP_Tree(const Vector<Node> &p_nodes, const Vector<Plane> &p_planes, const Rect3 &p_aabb, real_t p_error_radius) { - - nodes = p_nodes; - planes = p_planes; - aabb = p_aabb; - error_radius = p_error_radius; +BSP_Tree::BSP_Tree(const Vector<Node> &p_nodes, const Vector<Plane> &p_planes, const Rect3 &p_aabb, real_t p_error_radius) + : nodes(p_nodes), + planes(p_planes), + aabb(p_aabb), + error_radius(p_error_radius) { } BSP_Tree::~BSP_Tree() { |