summaryrefslogtreecommitdiffstats
path: root/core/math/rect3.h
diff options
context:
space:
mode:
authorWilson E. Alvarez <wilson.e.alvarez1@gmail.com>2017-07-30 19:07:04 -0400
committerWilson E. Alvarez <wilson.e.alvarez1@gmail.com>2017-08-08 21:43:19 -0400
commit6d112a68b685cde609d0d90b2c57f2db6a7b9df6 (patch)
tree46a49619034e5e3f41fd3447c4c5727bfbfcdd64 /core/math/rect3.h
parent950b205609ce41ab4804196a125e91274eb20258 (diff)
downloadredot-engine-6d112a68b685cde609d0d90b2c57f2db6a7b9df6.tar.gz
Moved member variables from constructor to initialization list
Diffstat (limited to 'core/math/rect3.h')
-rw-r--r--core/math/rect3.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/math/rect3.h b/core/math/rect3.h
index b7c94ad9f7..e5d7462009 100644
--- a/core/math/rect3.h
+++ b/core/math/rect3.h
@@ -101,9 +101,9 @@ public:
operator String() const;
_FORCE_INLINE_ Rect3() {}
- inline Rect3(const Vector3 &p_pos, const Vector3 &p_size) {
- position = p_pos;
- size = p_size;
+ inline Rect3(const Vector3 &p_pos, const Vector3 &p_size)
+ : position(p_pos),
+ size(p_size) {
}
};