]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/refptr.h
Add a few missing default initializers
[libs/core.git] / source / core / refptr.h
index 79401dce5be40094a9f55212c0c3fb4abd8f7dc9..1a164c1a90eafe69d3eab755b971400ff1f3e275 100644 (file)
@@ -10,10 +10,8 @@ struct RefCounts
                KEEP = 1U<<(sizeof(unsigned)*8-1)
        };
 
-       unsigned count;
-       unsigned weak_count;
-
-       RefCounts(): count(0), weak_count(0) { }
+       unsigned count = 0;
+       unsigned weak_count = 0;
 };
 
 template<typename T>