Commit 743c6039 authored by Frederik Gladhorn's avatar Frederik Gladhorn Committed by Frederik Gladhorn

Clean up initializers

parent 946613df
......@@ -27,15 +27,8 @@
#include <QTimer>
#include <sys/socket.h>
QMLScreen::QMLScreen(QQuickItem *parent):
QQuickItem(parent),
m_config(nullptr),
m_connectedOutputsCount(0),
m_enabledOutputsCount(0),
m_leftmost(nullptr),
m_topmost(nullptr),
m_rightmost(nullptr),
m_bottommost(nullptr)
QMLScreen::QMLScreen(QQuickItem *parent)
: QQuickItem(parent)
{
connect(this, &QMLScreen::widthChanged, this, &QMLScreen::viewSizeChanged);
connect(this, &QMLScreen::heightChanged, this, &QMLScreen::viewSizeChanged);
......
......@@ -106,8 +106,8 @@ class QMLScreen : public QQuickItem
KScreen::ConfigPtr m_config;
QHash<KScreen::OutputPtr,QMLOutput*> m_outputMap;
int m_connectedOutputsCount;
int m_enabledOutputsCount;
int m_connectedOutputsCount = 0;
int m_enabledOutputsCount = 0;
QQmlEngine* m_engine = nullptr;
QMLOutput *m_leftmost = nullptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment