summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-04-12 20:18:36 +0200
committerDavid Robillard <d@drobilla.net>2017-04-12 20:22:40 +0200
commit372ac1950628f7ae2f555181c57e3f69b45dbb7d (patch)
tree214e69cccfbbfd86c811baf0af37dd4572bb23b8 /src/server
parent5ead7905fed20333337fa82509e157499c71658a (diff)
downloadingen-372ac1950628f7ae2f555181c57e3f69b45dbb7d.tar.gz
ingen-372ac1950628f7ae2f555181c57e3f69b45dbb7d.tar.bz2
ingen-372ac1950628f7ae2f555181c57e3f69b45dbb7d.zip
Fix const correctness
Diffstat (limited to 'src/server')
-rw-r--r--src/server/Engine.cpp2
-rw-r--r--src/server/Engine.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/Engine.cpp b/src/server/Engine.cpp
index 5f5c53d0..2fa079f1 100644
--- a/src/server/Engine.cpp
+++ b/src/server/Engine.cpp
@@ -493,7 +493,7 @@ Engine::run(uint32_t sample_count)
}
bool
-Engine::pending_events()
+Engine::pending_events() const
{
return !_pre_processor->empty() || _post_processor->pending();
}
diff --git a/src/server/Engine.hpp b/src/server/Engine.hpp
index ab69586c..f951eaf3 100644
--- a/src/server/Engine.hpp
+++ b/src/server/Engine.hpp
@@ -79,7 +79,7 @@ public:
virtual void init(double sample_rate, uint32_t block_length, size_t seq_size);
virtual bool activate();
virtual void deactivate();
- virtual bool pending_events();
+ virtual bool pending_events() const;
virtual unsigned run(uint32_t sample_count);
virtual void quit();
virtual bool main_iteration();