diff options
| author | Wilson E. Alvarez | 2017-07-30 19:07:04 -0400 |
|---|---|---|
| committer | Wilson E. Alvarez | 2017-08-08 21:43:19 -0400 |
| commit | 6d112a68b685cde609d0d90b2c57f2db6a7b9df6 (patch) | |
| tree | 46a49619034e5e3f41fd3447c4c5727bfbfcdd64 /scene/3d/navigation.h | |
| parent | 950b205609ce41ab4804196a125e91274eb20258 (diff) | |
| download | godot-6d112a68b685cde609d0d90b2c57f2db6a7b9df6.tar.gz godot-6d112a68b685cde609d0d90b2c57f2db6a7b9df6.tar.zst godot-6d112a68b685cde609d0d90b2c57f2db6a7b9df6.zip | |
Moved member variables from constructor to initialization list
Diffstat (limited to '')
| -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 53e0b6399..80699fce7 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); } |
