Skip to content

Commit

Permalink
PLUGINS: Use override keyword
Browse files Browse the repository at this point in the history
This silences a clang warning
  • Loading branch information
lephilousophe committed Jun 30, 2024
1 parent 72f7cc1 commit 931eed0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backends/plugins/dynamic-plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
}
};
Expand Down

0 comments on commit 931eed0

Please sign in to comment.