From 7532c0f54b615b02ce41bc7f4bf954d0b4757731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 27 Feb 2014 12:07:41 +0100 Subject: [PATCH] [kwin] Add override to virtual methods in EffectWindow(Group)Impl In exchange the virtual keyword is removed - we don't need both. --- effects.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/effects.h b/effects.h index 43e45f5f0d..7067c853ab 100644 --- a/effects.h +++ b/effects.h @@ -292,27 +292,27 @@ public: explicit EffectWindowImpl(Toplevel *toplevel); virtual ~EffectWindowImpl(); - virtual void enablePainting(int reason); - virtual void disablePainting(int reason); - virtual bool isPaintingEnabled(); + void enablePainting(int reason) override; + void disablePainting(int reason) override; + bool isPaintingEnabled() override; - virtual void refWindow(); - virtual void unrefWindow(); + void refWindow() override; + void unrefWindow() override; - virtual const EffectWindowGroup* group() const; + const EffectWindowGroup* group() const override; - virtual QRegion shape() const; - virtual QRect decorationInnerRect() const; - virtual QByteArray readProperty(long atom, long type, int format) const; - virtual void deleteProperty(long atom) const; + QRegion shape() const override; + QRect decorationInnerRect() const override; + QByteArray readProperty(long atom, long type, int format) const override; + void deleteProperty(long atom) const override; - virtual EffectWindow* findModal(); - virtual EffectWindowList mainWindows() const; + EffectWindow* findModal() override; + EffectWindowList mainWindows() const override; - virtual WindowQuadList buildQuads(bool force = false) const; + WindowQuadList buildQuads(bool force = false) const override; - virtual void referencePreviousWindowPixmap(); - virtual void unreferencePreviousWindowPixmap(); + void referencePreviousWindowPixmap() override; + void unreferencePreviousWindowPixmap() override; const Toplevel* window() const; Toplevel* window(); @@ -352,7 +352,7 @@ class EffectWindowGroupImpl { public: explicit EffectWindowGroupImpl(Group* g); - virtual EffectWindowList members() const; + EffectWindowList members() const override; private: Group* group; };