summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-25 12:18:33 -0500
committerDavid Robillard <d@drobilla.net>2017-12-25 12:18:33 -0500
commit9aaa4892720de74e165049e2be941629038a6951 (patch)
tree50677a9bfdff4af3cebcf3796b6a80ea299c570b
parentcdff3e0a5e2e3357f1aa260cc19ef196ef738c7a (diff)
downloadingen-9aaa4892720de74e165049e2be941629038a6951.tar.gz
ingen-9aaa4892720de74e165049e2be941629038a6951.tar.bz2
ingen-9aaa4892720de74e165049e2be941629038a6951.zip
Use override
-rw-r--r--ingen/AtomReader.hpp4
-rw-r--r--ingen/AtomWriter.hpp2
-rw-r--r--ingen/DataAccess.hpp4
-rw-r--r--ingen/InstanceAccess.hpp4
-rw-r--r--ingen/LV2Features.hpp4
-rw-r--r--ingen/Log.hpp4
-rw-r--r--ingen/Resource.hpp2
-rw-r--r--ingen/SocketWriter.hpp2
-rw-r--r--ingen/StreamWriter.hpp2
-rw-r--r--ingen/TurtleWriter.hpp6
-rw-r--r--ingen/URIMap.hpp4
11 files changed, 19 insertions, 19 deletions
diff --git a/ingen/AtomReader.hpp b/ingen/AtomReader.hpp
index a482627b..9b2406e9 100644
--- a/ingen/AtomReader.hpp
+++ b/ingen/AtomReader.hpp
@@ -50,11 +50,11 @@ public:
URIs& uris,
Log& log,
Interface& iface);
- ~AtomReader() {}
+ ~AtomReader() override {}
static bool is_message(const URIs& uris, const LV2_Atom* msg);
- bool write(const LV2_Atom* msg, int32_t default_id=0);
+ bool write(const LV2_Atom* msg, int32_t default_id=0) override;
private:
void get_atom(const LV2_Atom* in, Atom& out);
diff --git a/ingen/AtomWriter.hpp b/ingen/AtomWriter.hpp
index 1022dfcb..72124b36 100644
--- a/ingen/AtomWriter.hpp
+++ b/ingen/AtomWriter.hpp
@@ -43,7 +43,7 @@ class INGEN_API AtomWriter : public Interface
public:
AtomWriter(URIMap& map, URIs& uris, AtomSink& sink);
- ~AtomWriter();
+ ~AtomWriter() override;
Raul::URI uri() const override {
return Raul::URI("ingen:/clients/atom_writer");
diff --git a/ingen/DataAccess.hpp b/ingen/DataAccess.hpp
index 88655817..cabb5345 100644
--- a/ingen/DataAccess.hpp
+++ b/ingen/DataAccess.hpp
@@ -39,9 +39,9 @@ struct DataAccess : public Ingen::LV2Features::Feature
delete feature;
}
- const char* uri() const { return "http://lv2plug.in/ns/ext/data-access"; }
+ const char* uri() const override { return "http://lv2plug.in/ns/ext/data-access"; }
- SPtr<LV2_Feature> feature(World* world, Node* node) {
+ SPtr<LV2_Feature> feature(World* world, Node* node) override {
Node* store_node = world->store()->get(node->path());
if (!store_node) {
return SPtr<LV2_Feature>();
diff --git a/ingen/InstanceAccess.hpp b/ingen/InstanceAccess.hpp
index c1d9dcbe..a93edc66 100644
--- a/ingen/InstanceAccess.hpp
+++ b/ingen/InstanceAccess.hpp
@@ -32,9 +32,9 @@ namespace Ingen {
struct InstanceAccess : public Ingen::LV2Features::Feature
{
- const char* uri() const { return "http://lv2plug.in/ns/ext/instance-access"; }
+ const char* uri() const override { return "http://lv2plug.in/ns/ext/instance-access"; }
- SPtr<LV2_Feature> feature(World* world, Node* node) {
+ SPtr<LV2_Feature> feature(World* world, Node* node) override {
Node* store_node = world->store()->get(node->path());
if (!store_node) {
return SPtr<LV2_Feature>();
diff --git a/ingen/LV2Features.hpp b/ingen/LV2Features.hpp
index 91fd3822..f718b22f 100644
--- a/ingen/LV2Features.hpp
+++ b/ingen/LV2Features.hpp
@@ -55,9 +55,9 @@ protected:
public:
EmptyFeature(const char* uri) : _uri(uri) {}
- virtual const char* uri() const { return _uri; }
+ const char* uri() const override { return _uri; }
- virtual SPtr<LV2_Feature> feature(World* world, Node* block) {
+ SPtr<LV2_Feature> feature(World* world, Node* block) override {
return SPtr<LV2_Feature>();
}
diff --git a/ingen/Log.hpp b/ingen/Log.hpp
index c797e00d..54369551 100644
--- a/ingen/Log.hpp
+++ b/ingen/Log.hpp
@@ -45,9 +45,9 @@ public:
Log(LV2_Log_Log* log, URIs& uris);
struct Feature : public LV2Features::Feature {
- const char* uri() const { return LV2_LOG__log; }
+ const char* uri() const override { return LV2_LOG__log; }
- SPtr<LV2_Feature> feature(World* world, Node* block);
+ SPtr<LV2_Feature> feature(World* world, Node* block) override;
struct Handle {
LV2_Log_Log lv2_log;
diff --git a/ingen/Resource.hpp b/ingen/Resource.hpp
index 967c3804..d19d5c9a 100644
--- a/ingen/Resource.hpp
+++ b/ingen/Resource.hpp
@@ -73,7 +73,7 @@ public:
return Graph::DEFAULT;
}
- virtual ~Resource() {}
+ ~Resource() override {}
/** Get a single property value.
*
diff --git a/ingen/SocketWriter.hpp b/ingen/SocketWriter.hpp
index 7523cd22..bfd9b0f6 100644
--- a/ingen/SocketWriter.hpp
+++ b/ingen/SocketWriter.hpp
@@ -43,7 +43,7 @@ public:
const Raul::URI& uri,
SPtr<Raul::Socket> sock);
- size_t text_sink(const void* buf, size_t len);
+ size_t text_sink(const void* buf, size_t len) override;
/** Override of bundle_end to terminate bundles in the stream. */
void bundle_end();
diff --git a/ingen/StreamWriter.hpp b/ingen/StreamWriter.hpp
index 1fd21b0a..3fe38646 100644
--- a/ingen/StreamWriter.hpp
+++ b/ingen/StreamWriter.hpp
@@ -41,7 +41,7 @@ public:
FILE* stream,
ColorContext::Color color);
- size_t text_sink(const void* buf, size_t len);
+ size_t text_sink(const void* buf, size_t len) override;
protected:
FILE* _stream;
diff --git a/ingen/TurtleWriter.hpp b/ingen/TurtleWriter.hpp
index 830b941c..b11e3d37 100644
--- a/ingen/TurtleWriter.hpp
+++ b/ingen/TurtleWriter.hpp
@@ -45,15 +45,15 @@ public:
URIs& uris,
const Raul::URI& uri);
- virtual ~TurtleWriter();
+ ~TurtleWriter() override;
/** AtomSink method which receives calls serialized to LV2 atoms. */
- bool write(const LV2_Atom* msg, int32_t default_id=0);
+ bool write(const LV2_Atom* msg, int32_t default_id=0) override;
/** Pure virtual text sink which receives calls serialized to Turtle. */
virtual size_t text_sink(const void* buf, size_t len) = 0;
- Raul::URI uri() const { return _uri; }
+ Raul::URI uri() const override { return _uri; }
protected:
URIMap& _map;
diff --git a/ingen/URIMap.hpp b/ingen/URIMap.hpp
index 448e5c3f..71cfb239 100644
--- a/ingen/URIMap.hpp
+++ b/ingen/URIMap.hpp
@@ -53,9 +53,9 @@ public:
_feature.data = data;
}
- const char* uri() const { return _feature.URI; }
+ const char* uri() const override { return _feature.URI; }
- SPtr<LV2_Feature> feature(World*, Node*) {
+ SPtr<LV2_Feature> feature(World*, Node*) override {
return SPtr<LV2_Feature>(&_feature, NullDeleter<LV2_Feature>);
}