]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/mutex.h
Use nullptr instead of 0 for pointers
[libs/core.git] / source / core / mutex.h
index dc9a2285be5919c519c7d67d7adfdee9ebea0711..6582074e182c988c3d813671b3cb92668c27ceeb 100644 (file)
@@ -17,7 +17,7 @@ class Mutex: private NonCopyable
 private:
        struct Private;
 
-       Private *priv = 0;
+       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; }
 };
 
 }