mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-12 11:06:11 +00:00
Initialize all members.
This commit is contained in:
parent
a0c5ae686e
commit
17d75c3953
@ -44,7 +44,7 @@ public:
|
||||
enum {NEW=0, NOT_COUNTED = -1};
|
||||
|
||||
explicit t_ref_counter(T_integral x = 0){count_=x;}
|
||||
t_ref_counter(t_ref_counter const &a){count_ = a.count_;}
|
||||
t_ref_counter(t_ref_counter const &a) : count_(a.count_) {}
|
||||
t_ref_counter & operator=(t_ref_counter const a){count_ = a.count_; return *this;}
|
||||
|
||||
operator T_integral const () const {return count_;}
|
||||
|
Loading…
x
Reference in New Issue
Block a user