summaryrefslogtreecommitdiffstats
path: root/src/gui/NodeModule.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-02 14:09:03 +0200
committerDavid Robillard <d@drobilla.net>2020-08-02 14:09:03 +0200
commit62f5c3124b991abe9b9423a4908ca076079d5327 (patch)
tree661304a2e5920c1c77f4ce61e4852cabdb250e5f /src/gui/NodeModule.cpp
parent019eeff6a7d051427ad62a288f350e66471a0462 (diff)
downloadingen-62f5c3124b991abe9b9423a4908ca076079d5327.tar.gz
ingen-62f5c3124b991abe9b9423a4908ca076079d5327.tar.bz2
ingen-62f5c3124b991abe9b9423a4908ca076079d5327.zip
Use auto with pointer casts to remove redundancy
Diffstat (limited to 'src/gui/NodeModule.cpp')
-rw-r--r--src/gui/NodeModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp
index c5015a39..8e6dc0cf 100644
--- a/src/gui/NodeModule.cpp
+++ b/src/gui/NodeModule.cpp
@@ -138,7 +138,7 @@ NodeModule::create(GraphCanvas& canvas,
SPtr<const BlockModel> block,
bool human)
{
- SPtr<const GraphModel> graph = std::dynamic_pointer_cast<const GraphModel>(block);
+ auto graph = std::dynamic_pointer_cast<const GraphModel>(block);
NodeModule* ret = (graph)
? new SubgraphModule(canvas, graph)