From 931eed0ab62f7eb2a7eb7eae5b0bf898ceb049d8 Mon Sep 17 00:00:00 2001 From: Le Philousophe Date: Sat, 22 Jun 2024 20:06:48 +0200 Subject: [PATCH] PLUGINS: Use override keyword This silences a clang warning --- backends/plugins/dynamic-plugin.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backends/plugins/dynamic-plugin.h b/backends/plugins/dynamic-plugin.h index c40e4460c85d..669f2bf729dd 100644 --- a/backends/plugins/dynamic-plugin.h +++ b/backends/plugins/dynamic-plugin.h @@ -40,7 +40,7 @@ class DynamicPlugin : public Plugin { DynamicPlugin(const Common::Path &filename) : _filename(filename) {} - virtual bool loadPlugin() { + bool loadPlugin() override { // Validate the plugin API version IntFunc verFunc = (IntFunc)findSymbol("PLUGIN_getVersion"); if (!verFunc) { @@ -96,12 +96,12 @@ class DynamicPlugin : public Plugin { return true; } - virtual void unloadPlugin() { + void unloadPlugin() override { delete _pluginObject; _pluginObject = nullptr; } - virtual Common::Path getFileName() const override { + Common::Path getFileName() const override { return _filename; } };