summaryrefslogtreecommitdiffstats
path: root/src/server/CompiledGraph.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-02 12:19:54 +0200
committerDavid Robillard <d@drobilla.net>2020-08-02 12:51:11 +0200
commit8123b3ff3aee3a161723c06a0d88141a0e8b7841 (patch)
tree82401219c53b678fcb3eab92904428e7b570a691 /src/server/CompiledGraph.cpp
parent8e0ab708ccb604c3224da2386dde609cb30de2b7 (diff)
downloadingen-8123b3ff3aee3a161723c06a0d88141a0e8b7841.tar.gz
ingen-8123b3ff3aee3a161723c06a0d88141a0e8b7841.tar.bz2
ingen-8123b3ff3aee3a161723c06a0d88141a0e8b7841.zip
Fix shadow warnings
Diffstat (limited to 'src/server/CompiledGraph.cpp')
-rw-r--r--src/server/CompiledGraph.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/server/CompiledGraph.cpp b/src/server/CompiledGraph.cpp
index dbd8b062..ba4cc11e 100644
--- a/src/server/CompiledGraph.cpp
+++ b/src/server/CompiledGraph.cpp
@@ -39,13 +39,16 @@ namespace server {
/** Graph contains ambiguous feedback with no delay nodes. */
class FeedbackException : public std::exception {
public:
- explicit FeedbackException(const BlockImpl* node,
- const BlockImpl* root = nullptr)
- : node(node), root(root)
+ explicit FeedbackException(const BlockImpl* n)
+ : node(n)
{}
- const BlockImpl* node;
- const BlockImpl* root;
+ FeedbackException(const BlockImpl* n, const BlockImpl* r)
+ : node(n), root(r)
+ {}
+
+ const BlockImpl* node = nullptr;
+ const BlockImpl* root = nullptr;
};
static bool