From 62f5c3124b991abe9b9423a4908ca076079d5327 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 2 Aug 2020 14:09:03 +0200 Subject: Use auto with pointer casts to remove redundancy --- src/gui/NodeModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/NodeModule.cpp') 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 block, bool human) { - SPtr graph = std::dynamic_pointer_cast(block); + auto graph = std::dynamic_pointer_cast(block); NodeModule* ret = (graph) ? new SubgraphModule(canvas, graph) -- cgit v1.2.1