From d014f2ab74dfbe9ac9010c12b93df9e739c23da2 Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Wed, 17 Oct 2018 00:48:02 +0300 Subject: [PATCH] [effects/screenshot] Use override keyword Test Plan: Compiles. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: davidedmundson, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D16261 --- effects/screenshot/screenshot.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/effects/screenshot/screenshot.h b/effects/screenshot/screenshot.h index 7a9458a4ae..b2b0fc24aa 100644 --- a/effects/screenshot/screenshot.h +++ b/effects/screenshot/screenshot.h @@ -42,10 +42,11 @@ public: INCLUDE_CURSOR = 1 << 1 }; ScreenShotEffect(); - virtual ~ScreenShotEffect(); + ~ScreenShotEffect() override; + void paintScreen(int mask, QRegion region, ScreenPaintData &data) override; - virtual void postPaintScreen(); - virtual bool isActive() const; + void postPaintScreen() override; + bool isActive() const override; int requestedEffectChainPosition() const override { return 50;