]> git.tdb.fi Git - libs/core.git/blobdiff - source/time/timer.h
Use default member initializers and constructor delegation
[libs/core.git] / source / time / timer.h
index 8bd4d074a70ea569b19074b32e303323143fae81..91acda9d49281373ade15beb162db9f7789c6f99 100644 (file)
@@ -41,7 +41,7 @@ public:
 private:
        struct SlotProxy
        {
-               Slot *slot;
+               Slot *slot = 0;
 
                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();