From c0de5d2620cc1ee227ff2c64ef163e308ba19cb4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 1 Aug 2020 21:31:04 +0200 Subject: Use explicit default for trivial constructors --- src/server/RunContext.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/server/RunContext.hpp') diff --git a/src/server/RunContext.hpp b/src/server/RunContext.hpp index 0ba4916b..7859d545 100644 --- a/src/server/RunContext.hpp +++ b/src/server/RunContext.hpp @@ -68,6 +68,9 @@ public: */ RunContext(const RunContext& copy); + RunContext& operator=(const RunContext&) = delete; + RunContext& operator=(RunContext&&) = delete; + /** Return true iff the given port should broadcast its value. * * Whether or not broadcasting is actually done is a per-client property, @@ -138,8 +141,6 @@ public: inline bool realtime() const { return _realtime; } protected: - const RunContext& operator=(const RunContext& copy) = delete; - void run(); Engine& _engine; ///< Engine we're running in -- cgit v1.2.1