diff options
author | Wilson E. Alvarez <wilson.e.alvarez1@gmail.com> | 2017-07-30 19:07:04 -0400 |
---|---|---|
committer | Wilson E. Alvarez <wilson.e.alvarez1@gmail.com> | 2017-08-08 21:43:19 -0400 |
commit | 6d112a68b685cde609d0d90b2c57f2db6a7b9df6 (patch) | |
tree | 46a49619034e5e3f41fd3447c4c5727bfbfcdd64 /core/pair.h | |
parent | 950b205609ce41ab4804196a125e91274eb20258 (diff) | |
download | redot-engine-6d112a68b685cde609d0d90b2c57f2db6a7b9df6.tar.gz |
Moved member variables from constructor to initialization list
Diffstat (limited to 'core/pair.h')
-rw-r--r-- | core/pair.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/pair.h b/core/pair.h index 761caf7791..d4b1897537 100644 --- a/core/pair.h +++ b/core/pair.h @@ -37,9 +37,9 @@ struct Pair { S second; Pair() {} - Pair(F p_first, S p_second) { - first = p_first; - second = p_second; + Pair(F p_first, S p_second) + : first(p_first), + second(p_second) { } }; |