From e3132b406de025ec4ecd612977425c7e7273ecf9 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 3 Apr 2024 17:26:03 +0200 Subject: Mark overridden virtual functions Use the new "override" keyword to properly differentiate between new virtual methods, and existing virtual methods being overridden. --- common/rfb/HextileDecoder.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'common/rfb/HextileDecoder.h') diff --git a/common/rfb/HextileDecoder.h b/common/rfb/HextileDecoder.h index 9163b5bb..38e8b776 100644 --- a/common/rfb/HextileDecoder.h +++ b/common/rfb/HextileDecoder.h @@ -29,11 +29,12 @@ namespace rfb { public: HextileDecoder(); virtual ~HextileDecoder(); - virtual bool readRect(const Rect& r, rdr::InStream* is, - const ServerParams& server, rdr::OutStream* os); - virtual void decodeRect(const Rect& r, const uint8_t* buffer, - size_t buflen, const ServerParams& server, - ModifiablePixelBuffer* pb); + bool readRect(const Rect& r, rdr::InStream* is, + const ServerParams& server, + rdr::OutStream* os) override; + void decodeRect(const Rect& r, const uint8_t* buffer, + size_t buflen, const ServerParams& server, + ModifiablePixelBuffer* pb) override; private: template inline T readPixel(rdr::InStream* is); -- cgit v1.2.3