]> git.tdb.fi Git - libs/core.git/blobdiff - source/time/timer.cpp
Use nullptr instead of 0 for pointers
[libs/core.git] / source / time / timer.cpp
index 9411facc5d08bf667d73373e03eba43d0acd350c..04c3074494e921d39f3edb54e53e378c8623e826 100644 (file)
@@ -9,8 +9,7 @@ namespace Msp {
 namespace Time {
 
 Timer::Timer():
-       sem(1),
-       blocking(false)
+       sem(1)
 { }
 
 Timer::~Timer()
@@ -72,7 +71,7 @@ void Timer::do_tick(const TimeDelta &timeout)
        if(timeout>=zero)
                deadline = now()+timeout;
 
-       Slot *next = 0;
+       Slot *next = nullptr;
        {
                MutexLock l(mutex);
                while(1)