X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fmutex.h;h=6582074e182c988c3d813671b3cb92668c27ceeb;hb=4ad05c650c55e3edccea887d15b26f41cdf60fb6;hp=3d3dc84dd3bca28e65c0ea770b00cc6851b6f552;hpb=c3e242c2629cbc9645258b30aaf07b7285d4372b;p=libs%2Fcore.git diff --git a/source/core/mutex.h b/source/core/mutex.h index 3d3dc84..6582074 100644 --- a/source/core/mutex.h +++ b/source/core/mutex.h @@ -17,7 +17,7 @@ class Mutex: private NonCopyable private: struct Private; - Private *priv; + Private *priv = nullptr; public: Mutex(); @@ -67,7 +67,7 @@ public: T &operator*() const { return *data; } T *operator->() const { return data; } - void clear() { mutex = 0; data = 0; } + void clear() { mutex = nullptr; data = nullptr; } }; }