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.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/directshow/common/directshoweventloop.cpp b/src/plugins/directshow/common/directshoweventloop.cpp
index 843a78422..692c873cf 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,13 +61,11 @@ 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(nullptr, FALSE, FALSE, nullptr))
, m_waitHandle(::CreateEvent(nullptr, FALSE, FALSE, 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);