Use default member initialization in Compositor consistently

This commit is contained in:
Vlad Zahorodnii 2022-01-03 10:51:21 +02:00
parent e81a360194
commit bc3d80db2a
2 changed files with 3 additions and 7 deletions

View file

@ -112,9 +112,6 @@ private:
Compositor::Compositor(QObject* workspace)
: QObject(workspace)
, m_state(State::Off)
, m_selectionOwner(nullptr)
, m_scene(nullptr)
{
connect(options, &Options::configChanged, this, &Compositor::configChanged);
connect(options, &Options::animationSpeedChanged, this, &Compositor::configChanged);

View file

@ -135,13 +135,12 @@ private:
bool attemptOpenGLCompositing();
bool attemptQPainterCompositing();
State m_state;
CompositorSelectionOwner *m_selectionOwner;
State m_state = State::Off;
CompositorSelectionOwner *m_selectionOwner = nullptr;
QTimer m_releaseSelectionTimer;
QList<xcb_atom_t> m_unusedSupportProperties;
QTimer m_unusedSupportPropertyTimer;
Scene *m_scene;
Scene *m_scene = nullptr;
RenderBackend *m_backend = nullptr;
QMap<RenderLoop *, AbstractOutput *> m_renderLoops;
};