Commit 1497269d authored by Laurent Montel's avatar Laurent Montel 😁

USe override/nullptr

parent cef281fe
......@@ -46,8 +46,8 @@ class Poller : public AbstractSystemPoller
Q_INTERFACES(AbstractSystemPoller)
public:
Poller(QObject *parent = 0);
virtual ~Poller();
explicit Poller(QObject *parent = nullptr);
~Poller() override;
bool isAvailable() override;
bool setUpPoller() override;
......
......@@ -29,8 +29,8 @@ class KWaylandPlugin : public KWindowSystemPluginInterface
Q_INTERFACES(KWindowSystemPluginInterface)
public:
explicit KWaylandPlugin(QObject *parent = 0);
virtual ~KWaylandPlugin();
explicit KWaylandPlugin(QObject *parent = nullptr);
~KWaylandPlugin() override;
KWindowEffectsPrivate *createEffects() override;
KWindowSystemPrivate *createWindowSystem() override;
......
......@@ -37,8 +37,8 @@ namespace KWayland
class WindowEffects : public QObject, public KWindowEffectsPrivate
{
public:
explicit WindowEffects();
~WindowEffects();
WindowEffects();
~WindowEffects() override;
bool isEffectAvailable(KWindowEffects::Effect effect) override;
void slideWindow(WId id, KWindowEffects::SlideFromLocation location, int offset) override;
......
......@@ -56,7 +56,7 @@ bool WindowInfo::valid(bool withdrawn_is_valid) const
NET::States WindowInfo::state() const
{
return 0;
return {};
}
bool WindowInfo::isMinimized() const
......
......@@ -38,7 +38,7 @@ class WindowInfo : public KWindowInfoPrivate
{
public:
WindowInfo(WId window, NET::Properties properties, NET::Properties2 properties2);
~WindowInfo();
~WindowInfo() override;
bool valid(bool withdrawn_is_valid) const override;
NET::States state() const override;
......
......@@ -312,7 +312,7 @@ void WindowSystem::clearState(WId win, NET::States state)
return;
}
KWayland::Client::PlasmaShellSurface *plasmaShellSurface = 0;
KWayland::Client::PlasmaShellSurface *plasmaShellSurface = nullptr;
if (state & NET::SkipTaskbar) {
if (!WaylandIntegration::self()->waylandPlasmaShell()) {
......@@ -373,7 +373,7 @@ void WindowSystem::setState(WId win, NET::States state)
return;
}
KWayland::Client::PlasmaShellSurface *plasmaShellSurface = 0;
KWayland::Client::PlasmaShellSurface *plasmaShellSurface = nullptr;
if (state & NET::SkipTaskbar) {
if (!WaylandIntegration::self()->waylandPlasmaShell()) {
......
......@@ -38,7 +38,7 @@ class WindowSystem : public QObject, public KWindowSystemPrivate
{
Q_OBJECT
public:
explicit WindowSystem();
WindowSystem();
QList<WId> windows() override;
QList<WId> stackingOrder() override;
WId activeWindow() override;
......
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