]> git.tdb.fi Git - libs/core.git/blobdiff - source/time/timer.h
Use nullptr instead of 0 for pointers
[libs/core.git] / source / time / timer.h
index 8bd4d074a70ea569b19074b32e303323143fae81..33257319eba3466d89f28c650efcd26dde0a996d 100644 (file)
@@ -41,7 +41,7 @@ public:
 private:
        struct SlotProxy
        {
-               Slot *slot;
+               Slot *slot = nullptr;
 
                SlotProxy(Slot *);
                bool operator<(const SlotProxy &) const;
@@ -50,7 +50,7 @@ private:
        std::vector<SlotProxy> slots;
        Semaphore sem;
        Mutex mutex;
-       bool blocking;
+       bool blocking = false;
 
 public:
        Timer();