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

Use override throughout
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 26 Nov 2018 13:39:01 +0000
parents 7ada63fe1084
children
line wrap: on
line diff
--- a/vamp-support/PreservingPluginOutputIdMapper.h	Thu Nov 01 14:04:58 2018 +0000
+++ b/vamp-support/PreservingPluginOutputIdMapper.h	Mon Nov 26 13:39:01 2018 +0000
@@ -52,7 +52,7 @@
 public:
     PreservingPluginOutputIdMapper() { }
 
-    virtual int idToIndex(std::string outputId) const noexcept {
+    int idToIndex(std::string outputId) const noexcept override {
 	int n = int(m_ids.size());
 	int i = 0;
 	while (i < n) {
@@ -65,7 +65,7 @@
 	return i;
     }
 
-    virtual std::string indexToId(int index) const noexcept {
+    std::string indexToId(int index) const noexcept override {
         if (index < 0 || size_t(index) >= m_ids.size()) return "";
 	return m_ids[index];
     }