Initialize all members.

This commit is contained in:
Mark de Wever 2011-08-14 17:59:12 +00:00
parent a0c5ae686e
commit 17d75c3953

View File

@ -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_;}