diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/server/CompiledGraph.cpp | 6 | ||||
-rw-r--r-- | src/server/PostProcessor.cpp | 2 | ||||
-rw-r--r-- | src/server/RunContext.cpp | 10 | ||||
-rw-r--r-- | src/server/UndoStack.cpp | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/src/server/CompiledGraph.cpp b/src/server/CompiledGraph.cpp index d75c9910..9efed05f 100644 --- a/src/server/CompiledGraph.cpp +++ b/src/server/CompiledGraph.cpp @@ -39,9 +39,9 @@ namespace server { /** Graph contains ambiguous feedback with no delay nodes. */ class FeedbackException : public std::exception { public: - FeedbackException(const BlockImpl* node, const BlockImpl* root=nullptr) - : node(node) - , root(root) + explicit FeedbackException(const BlockImpl* node, + const BlockImpl* root = nullptr) + : node(node), root(root) {} const BlockImpl* node; diff --git a/src/server/PostProcessor.cpp b/src/server/PostProcessor.cpp index db3c7e57..5a0a8f3e 100644 --- a/src/server/PostProcessor.cpp +++ b/src/server/PostProcessor.cpp @@ -28,7 +28,7 @@ class PreProcessContext; class Sentinel : public Event { public: - Sentinel(Engine& engine) : Event(engine) {} + explicit Sentinel(Engine& engine) : Event(engine) {} bool pre_process(PreProcessContext&) override { return false; } void execute(RunContext&) override {} diff --git a/src/server/RunContext.cpp b/src/server/RunContext.cpp index 68812c02..57aaa299 100644 --- a/src/server/RunContext.cpp +++ b/src/server/RunContext.cpp @@ -38,11 +38,11 @@ namespace server { struct Notification { - inline Notification(PortImpl* p = nullptr, - FrameTime f = 0, - LV2_URID k = 0, - uint32_t s = 0, - LV2_URID t = 0) + explicit inline Notification(PortImpl* p = nullptr, + FrameTime f = 0, + LV2_URID k = 0, + uint32_t s = 0, + LV2_URID t = 0) : port(p), time(f), key(k), size(s), type(t) {} diff --git a/src/server/UndoStack.cpp b/src/server/UndoStack.cpp index 9574d393..e9f5e85d 100644 --- a/src/server/UndoStack.cpp +++ b/src/server/UndoStack.cpp @@ -118,7 +118,7 @@ UndoStack::pop() } struct BlankIDs { - BlankIDs(char c='b') : c(c) {} + explicit BlankIDs(char c='b') : c(c) {} SerdNode get() { snprintf(buf, sizeof(buf), "%c%u", c, n++); |