X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Frefptr.h;fp=source%2Fcore%2Frefptr.h;h=21da15df6a21d2581f640e88245c969da5eb0f80;hp=6285d0ef4031e2e1bc29a1a0495b3e67bc5721dc;hb=99b9121e2158603372c7313400283b622e6754d8;hpb=30ce69b5cb05712c3a4903b0f397912119c4f1f9 diff --git a/source/core/refptr.h b/source/core/refptr.h index 6285d0e..21da15d 100644 --- a/source/core/refptr.h +++ b/source/core/refptr.h @@ -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(); }