From 899bd4de3fa5fb0e9ed86e0d9095c3decec199b2 Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Wed, 17 Oct 2018 00:51:44 +0300 Subject: [PATCH] [effects/backgroundcontrast] Use override keyword Test Plan: Compiles. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D16262 --- effects/backgroundcontrast/contrast.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/effects/backgroundcontrast/contrast.h b/effects/backgroundcontrast/contrast.h index cdf060901a..f847827b76 100644 --- a/effects/backgroundcontrast/contrast.h +++ b/effects/backgroundcontrast/contrast.h @@ -46,19 +46,19 @@ class ContrastEffect : public KWin::Effect Q_OBJECT public: ContrastEffect(); - ~ContrastEffect(); + ~ContrastEffect() override; static bool supported(); static bool enabledByDefault(); static QMatrix4x4 colorMatrix(qreal contrast, qreal intensity, qreal saturation); - void reconfigure(ReconfigureFlags flags); - void prePaintScreen(ScreenPrePaintData &data, int time); - void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time); - void drawWindow(EffectWindow *w, int mask, QRegion region, WindowPaintData &data); - void paintEffectFrame(EffectFrame *frame, QRegion region, double opacity, double frameOpacity); + void reconfigure(ReconfigureFlags flags) override; + void prePaintScreen(ScreenPrePaintData &data, int time) override; + void prePaintWindow(EffectWindow *w, WindowPrePaintData &data, int time) override; + void drawWindow(EffectWindow *w, int mask, QRegion region, WindowPaintData &data) override; + void paintEffectFrame(EffectFrame *frame, QRegion region, double opacity, double frameOpacity) override; - virtual bool provides(Feature feature); + bool provides(Feature feature) override; int requestedEffectChainPosition() const override { return 76;