diff options
author | David Robillard <d@drobilla.net> | 2024-10-06 16:56:04 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-10-11 19:37:24 -0400 |
commit | 1ecbb458c9877cf18d0438449d8757fb713d46d2 (patch) | |
tree | 62696de1f35cef8188cc79abe1da3097d431f845 /src/server/Task.hpp | |
parent | 9009631bdf6d1142a13335ececbc1f78daf3fdf0 (diff) | |
download | ingen-1ecbb458c9877cf18d0438449d8757fb713d46d2.tar.gz ingen-1ecbb458c9877cf18d0438449d8757fb713d46d2.tar.bz2 ingen-1ecbb458c9877cf18d0438449d8757fb713d46d2.zip |
Make more single-argument constructors explicit
Diffstat (limited to 'src/server/Task.hpp')
-rw-r--r-- | src/server/Task.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/Task.hpp b/src/server/Task.hpp index c665c16f..f2141bd5 100644 --- a/src/server/Task.hpp +++ b/src/server/Task.hpp @@ -39,13 +39,15 @@ public: PARALLEL ///< Elements may be run in any order in parallel }; - Task(Mode mode, BlockImpl* block = nullptr) + Task(Mode mode, BlockImpl* block) : _block(block) , _mode(mode) { assert(mode != Mode::SINGLE || block); } + explicit Task(Mode mode) : Task{mode, nullptr} {} + Task(const Task&) = delete; Task& operator=(const Task&) = delete; |