Fix Windows build
authorCraig Robbins <kde.psych@gmail.com>
Mon, 2 May 2016 05:01:17 +0000 (15:01 +1000)
committerCraig Robbins <kde.psych@gmail.com>
Mon, 2 May 2016 05:01:17 +0000 (15:01 +1000)
Fixes the issue introduced by c1a0ebb (Fix use of uninitialised variable
in class Event) causing Windows builds to fail

src/threading/event.cpp

index b7f16154ebc946e3d55cc9f2af6b8b9a0e45f5c7..165f9d83f9563d64760edc2cfe323ad74683557d 100644 (file)
@@ -26,7 +26,6 @@ DEALINGS IN THE SOFTWARE.
 #include "threading/event.h"
 
 Event::Event()
-    : notified(false)
 {
 #if __cplusplus < 201103L
 #      ifdef _WIN32
@@ -34,6 +33,7 @@ Event::Event()
 #      else
        pthread_cond_init(&cv, NULL);
        pthread_mutex_init(&mutex, NULL);
+       notified = false;
 #      endif
 #endif
 }