diff vamp-support/PreservingPluginHandleMapper.h @ 280:4b581a498981

Use override throughout
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 26 Nov 2018 13:39:01 +0000
parents 5ac494d998b2
children
line wrap: on
line diff
--- a/vamp-support/PreservingPluginHandleMapper.h	Thu Nov 01 14:04:58 2018 +0000
+++ b/vamp-support/PreservingPluginHandleMapper.h	Mon Nov 26 13:39:01 2018 +0000
@@ -54,16 +54,16 @@
 {
     class NotAPlugin : public Vamp::Plugin
     {
-        #define STR(x) std::string get##x() const { return "not-a-plugin"; }
+        #define STR(x) std::string get##x() const override { return "not-a-plugin"; }
     public:
         STR(Identifier) STR(Name) STR(Description) STR(Maker) STR(Copyright)
-        int getPluginVersion() const { return 1; }
-        bool initialise(size_t, size_t, size_t) { return false; }
-        void reset() { }
-        InputDomain getInputDomain() const { return TimeDomain; }
-        OutputList getOutputDescriptors() const { return {}; }
-        FeatureSet process(const float *const *, Vamp::RealTime) { return {}; }
-        FeatureSet getRemainingFeatures() { return {}; }
+        int getPluginVersion() const override { return 1; }
+        bool initialise(size_t, size_t, size_t) override { return false; }
+        void reset() override { }
+        InputDomain getInputDomain() const override { return TimeDomain; }
+        OutputList getOutputDescriptors() const override { return {}; }
+        FeatureSet process(const float *const *, Vamp::RealTime) override { return {}; }
+        FeatureSet getRemainingFeatures() override { return {}; }
         NotAPlugin() : Plugin(1) { }
     };
     
@@ -77,7 +77,7 @@
         delete m_plugin;
     }
 
-    virtual Handle pluginToHandle(Vamp::Plugin *p) const noexcept {
+    Handle pluginToHandle(Vamp::Plugin *p) const noexcept override {
         if (!p) return INVALID_HANDLE;
 	if (p == m_plugin) return m_handle;
 	else {
@@ -89,7 +89,7 @@
 	}
     }
 
-    virtual Vamp::Plugin *handleToPlugin(Handle h) const noexcept {
+    Vamp::Plugin *handleToPlugin(Handle h) const noexcept override {
         if (h == INVALID_HANDLE) return nullptr;
         if (h == m_handle) return m_plugin;
         if (m_handle != INVALID_HANDLE) {
@@ -111,14 +111,14 @@
         return m_plugin;
     }
 
-    virtual const std::shared_ptr<PluginOutputIdMapper> pluginToOutputIdMapper
-    (Vamp::Plugin *p) const noexcept {
+    const std::shared_ptr<PluginOutputIdMapper> pluginToOutputIdMapper
+    (Vamp::Plugin *p) const noexcept override {
         if (!p) return {};
         return m_omapper;
     }
         
-    virtual const std::shared_ptr<PluginOutputIdMapper> handleToOutputIdMapper
-    (Handle h) const noexcept {
+    const std::shared_ptr<PluginOutputIdMapper> handleToOutputIdMapper
+    (Handle h) const noexcept override {
         if (h == INVALID_HANDLE) return {};
         return m_omapper;
     }