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. --- win/rfb_win32/SDisplayCoreWMHooks.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'win/rfb_win32/SDisplayCoreWMHooks.h') diff --git a/win/rfb_win32/SDisplayCoreWMHooks.h b/win/rfb_win32/SDisplayCoreWMHooks.h index 82557f13..3358a1ee 100644 --- a/win/rfb_win32/SDisplayCoreWMHooks.h +++ b/win/rfb_win32/SDisplayCoreWMHooks.h @@ -43,14 +43,14 @@ namespace rfb { ~SDisplayCoreWMHooks(); // - Called by SDisplay to flush updates to the specified tracker - virtual void flushUpdates(); + void flushUpdates() override; - virtual const char* methodName() const { return "VNC Hooks"; } + const char* methodName() const override { return "VNC Hooks"; } protected: // - MsgWindow overrides // processMessage is used to service the cursor & polling timers - virtual LRESULT processMessage(UINT msg, WPARAM wParam, LPARAM lParam); + LRESULT processMessage(UINT msg, WPARAM wParam, LPARAM lParam) override; // - Hooking subcomponents used to track the desktop state WMHooks hooks; -- cgit v1.2.3