]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/refptr.h
Mark constructors and destructors as default where appropriate
[libs/core.git] / source / core / refptr.h
index 6285d0ef4031e2e1bc29a1a0495b3e67bc5721dc..21da15df6a21d2581f640e88245c969da5eb0f80 100644 (file)
@@ -35,7 +35,7 @@ private:
        RefCounts *counts = 0;
 
 public:
-       RefPtr() { }
+       RefPtr() = default;
        RefPtr(T *d): data(d), counts(data ? new RefCounts : 0) { incref(); }
 private:
        RefPtr(T *d, RefCounts *c): data(d), counts(d ? c : 0) { incref(); }
@@ -106,7 +106,7 @@ private:
        RefCounts *counts = 0;
 
 public:
-       WeakPtr() { }
+       WeakPtr() = default;
 private:
        WeakPtr(T *d, RefCounts *c): data(d), counts(d ? c : 0) { incref(); }