From ec6e6fa63c1f2ea6bd9652d0b596cdb5b61e0353 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Sat, 9 Oct 2021 17:13:41 +0300 Subject: [PATCH] effects/showfps: Add destructor The GLTexture class is forward declared and the ShowFpsEffect class has a QScopedPointer field. We either need to include the kwinglutils.h header file or add a destructor that does nothing and define it in the cpp file, where kwinglutils.h is included. --- src/effects/showfps/showfps.cpp | 4 ++++ src/effects/showfps/showfps.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/effects/showfps/showfps.cpp b/src/effects/showfps/showfps.cpp index f15145c750..90cc7a514d 100644 --- a/src/effects/showfps/showfps.cpp +++ b/src/effects/showfps/showfps.cpp @@ -51,6 +51,10 @@ ShowFpsEffect::ShowFpsEffect() reconfigure(ReconfigureAll); } +ShowFpsEffect::~ShowFpsEffect() +{ +} + void ShowFpsEffect::reconfigure(ReconfigureFlags) { ShowFpsConfig::self()->read(); diff --git a/src/effects/showfps/showfps.h b/src/effects/showfps/showfps.h index 859ae726f0..d645cb9e6a 100644 --- a/src/effects/showfps/showfps.h +++ b/src/effects/showfps/showfps.h @@ -33,6 +33,8 @@ class ShowFpsEffect Q_PROPERTY(QColor textColor READ configuredTextColor) public: ShowFpsEffect(); + ~ShowFpsEffect() override; + void reconfigure(ReconfigureFlags) override; void prePaintScreen(ScreenPrePaintData& data, std::chrono::milliseconds presentTime) override; void paintScreen(int mask, const QRegion ®ion, ScreenPaintData& data) override;