aboutsummaryrefslogtreecommitdiffstats
path: root/tests/perf/fbperf.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-04-03 17:26:03 +0200
committerPierre Ossman <ossman@cendio.se>2024-06-24 13:47:18 +0200
commite3132b406de025ec4ecd612977425c7e7273ecf9 (patch)
tree815ab6630f84810b0e4c9b2c65917287b4e01692 /tests/perf/fbperf.cxx
parent8530a1bd034feee8bd6e3a436887af187b058f2b (diff)
downloadtigervnc-e3132b406de025ec4ecd612977425c7e7273ecf9.tar.gz
tigervnc-e3132b406de025ec4ecd612977425c7e7273ecf9.zip
Mark overridden virtual functions
Use the new "override" keyword to properly differentiate between new virtual methods, and existing virtual methods being overridden.
Diffstat (limited to 'tests/perf/fbperf.cxx')
-rw-r--r--tests/perf/fbperf.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/perf/fbperf.cxx b/tests/perf/fbperf.cxx
index ba1633b9..357aede2 100644
--- a/tests/perf/fbperf.cxx
+++ b/tests/perf/fbperf.cxx
@@ -43,10 +43,10 @@ public:
virtual void start(int width, int height);
virtual void stop();
- virtual void draw();
+ void draw() override;
protected:
- virtual void flush();
+ void flush() override;
void update();
virtual void changefb();
@@ -63,17 +63,17 @@ protected:
class PartialTestWindow: public TestWindow {
protected:
- virtual void changefb();
+ void changefb() override;
};
class OverlayTestWindow: public PartialTestWindow {
public:
OverlayTestWindow();
- virtual void start(int width, int height);
- virtual void stop();
+ void start(int width, int height) override;
+ void stop() override;
- virtual void draw();
+ void draw() override;
protected:
Surface* overlay;