summaryrefslogtreecommitdiffstats
path: root/src/plugins/directshow/common/directshoweventloop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/directshow/common/directshoweventloop.cpp')
-rw-r--r--src/plugins/directshow/common/directshoweventloop.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/plugins/directshow/common/directshoweventloop.cpp b/src/plugins/directshow/common/directshoweventloop.cpp
index fbc7b8cee..a38c26ef4 100644
--- a/src/plugins/directshow/common/directshoweventloop.cpp
+++ b/src/plugins/directshow/common/directshoweventloop.cpp
@@ -51,7 +51,6 @@ public:
DirectShowPostedEvent(QObject *receiver, QEvent *event)
: receiver(receiver)
, event(event)
- , next(0)
{
}
@@ -62,15 +61,13 @@ public:
QObject *receiver;
QEvent *event;
- DirectShowPostedEvent *next;
+ DirectShowPostedEvent *next = nullptr;
};
DirectShowEventLoop::DirectShowEventLoop(QObject *parent)
: QObject(parent)
- , m_postsHead(0)
- , m_postsTail(0)
- , m_eventHandle(::CreateEvent(0, 0, 0, 0))
- , m_waitHandle(::CreateEvent(0, 0, 0, 0))
+ , m_eventHandle(::CreateEvent(nullptr, 0, 0, nullptr))
+ , m_waitHandle(::CreateEvent(nullptr, 0, 0, nullptr))
{
}
@@ -141,7 +138,7 @@ void DirectShowEventLoop::processEvents()
m_postsHead = m_postsHead->next;
if (!m_postsHead)
- m_postsTail = 0;
+ m_postsTail = nullptr;
locker.unlock();
QCoreApplication::sendEvent(post->receiver, post->event);