From 04b4d70f38402b1e4e4751157f42eb558bd60f9c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 23 Sep 2018 19:06:25 +0200 Subject: Use override specifiers --- src/server/internals/BlockDelay.hpp | 4 ++-- src/server/internals/Controller.hpp | 4 ++-- src/server/internals/Note.hpp | 6 +++--- src/server/internals/Time.hpp | 2 +- src/server/internals/Trigger.hpp | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src/server/internals') diff --git a/src/server/internals/BlockDelay.hpp b/src/server/internals/BlockDelay.hpp index a4a27383..0e8fadce 100644 --- a/src/server/internals/BlockDelay.hpp +++ b/src/server/internals/BlockDelay.hpp @@ -43,9 +43,9 @@ public: ~BlockDelayNode(); - void activate(BufferFactory& bufs); + void activate(BufferFactory& bufs) override; - void run(RunContext& context); + void run(RunContext& context) override; static InternalPlugin* internal_plugin(URIs& uris); diff --git a/src/server/internals/Controller.hpp b/src/server/internals/Controller.hpp index 9d1bbf7d..d138e690 100644 --- a/src/server/internals/Controller.hpp +++ b/src/server/internals/Controller.hpp @@ -45,11 +45,11 @@ public: GraphImpl* parent, SampleRate srate); - void run(RunContext& context); + void run(RunContext& context) override; bool control(RunContext& context, uint8_t control_num, uint8_t val, FrameTime time); - void learn() { _learning = true; } + void learn() override { _learning = true; } static InternalPlugin* internal_plugin(URIs& uris); diff --git a/src/server/internals/Note.hpp b/src/server/internals/Note.hpp index 5c1b24c4..fb935179 100644 --- a/src/server/internals/Note.hpp +++ b/src/server/internals/Note.hpp @@ -45,10 +45,10 @@ public: GraphImpl* parent, SampleRate srate); - bool prepare_poly(BufferFactory& bufs, uint32_t poly); - bool apply_poly(RunContext& context, uint32_t poly); + bool prepare_poly(BufferFactory& bufs, uint32_t poly) override; + bool apply_poly(RunContext& context, uint32_t poly) override; - void run(RunContext& context); + void run(RunContext& context) override; void note_on(RunContext& context, uint8_t note_num, uint8_t velocity, FrameTime time); void note_off(RunContext& context, uint8_t note_num, FrameTime time); diff --git a/src/server/internals/Time.hpp b/src/server/internals/Time.hpp index b4b570f4..958cd239 100644 --- a/src/server/internals/Time.hpp +++ b/src/server/internals/Time.hpp @@ -44,7 +44,7 @@ public: GraphImpl* parent, SampleRate srate); - void run(RunContext& context); + void run(RunContext& context) override; static InternalPlugin* internal_plugin(URIs& uris); diff --git a/src/server/internals/Trigger.hpp b/src/server/internals/Trigger.hpp index ae661751..98d50f2c 100644 --- a/src/server/internals/Trigger.hpp +++ b/src/server/internals/Trigger.hpp @@ -48,12 +48,12 @@ public: GraphImpl* parent, SampleRate srate); - void run(RunContext& context); + void run(RunContext& context) override; bool note_on(RunContext& context, uint8_t note_num, uint8_t velocity, FrameTime time); bool note_off(RunContext& context, uint8_t note_num, FrameTime time); - void learn() { _learning = true; } + void learn() override { _learning = true; } static InternalPlugin* internal_plugin(URIs& uris); -- cgit v1.2.1