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 /scene/3d | |
parent | 8e6768c963b0ed825e4a4dbf3aeee5907168d697 (diff) | |
parent | 6d112a68b685cde609d0d90b2c57f2db6a7b9df6 (diff) |
Merge pull request #9987 from Rubonnek/move-members-to-initilization-list
Moved member variables from constructor to initialization list
Diffstat (limited to 'scene/3d')
-rw-r--r-- | scene/3d/navigation.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/3d/navigation.h b/scene/3d/navigation.h index 53e0b6399a..80699fce72 100644 --- a/scene/3d/navigation.h +++ b/scene/3d/navigation.h @@ -58,9 +58,9 @@ class Navigation : public Spatial { return (a.key == p_key.a.key) ? (b.key < p_key.b.key) : (a.key < p_key.a.key); }; - EdgeKey(const Point &p_a = Point(), const Point &p_b = Point()) { - a = p_a; - b = p_b; + EdgeKey(const Point &p_a = Point(), const Point &p_b = Point()) + : a(p_a), + b(p_b) { if (a.key > b.key) { SWAP(a, b); } |