summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-12-08 19:45:36 +0100
committerDavid Robillard <d@drobilla.net>2019-12-08 21:08:37 +0100
commit3f183ed0c46bf8d9a08e1c54f8218c1bf4106721 (patch)
tree5c70afbbc12e7d9af349c0af4c2c3fd975456794 /src/server
parent9b0da6ca2d5533261be3c88bcbfd948a81df3fc7 (diff)
downloadingen-3f183ed0c46bf8d9a08e1c54f8218c1bf4106721.tar.gz
ingen-3f183ed0c46bf8d9a08e1c54f8218c1bf4106721.tar.bz2
ingen-3f183ed0c46bf8d9a08e1c54f8218c1bf4106721.zip
Cleanup: Make single argument constructors explicit
Diffstat (limited to 'src/server')
-rw-r--r--src/server/CompiledGraph.cpp6
-rw-r--r--src/server/PostProcessor.cpp2
-rw-r--r--src/server/RunContext.cpp10
-rw-r--r--src/server/UndoStack.cpp2
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++);