summaryrefslogtreecommitdiffstats
path: root/src/gui/Arc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/Arc.cpp')
-rw-r--r--src/gui/Arc.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/Arc.cpp b/src/gui/Arc.cpp
index b436dd26..02136770 100644
--- a/src/gui/Arc.cpp
+++ b/src/gui/Arc.cpp
@@ -19,6 +19,8 @@
#include "ingen/client/ArcModel.hpp"
#include "ingen/client/BlockModel.hpp"
+#include <memory>
+
#define NS_INTERNALS "http://drobilla.net/ns/ingen-internals#"
namespace ingen {
@@ -32,7 +34,7 @@ Arc::Arc(Ganv::Canvas& canvas,
{
SPtr<const client::ObjectModel> tparent = model->tail()->parent();
SPtr<const client::BlockModel> tparent_block;
- if ((tparent_block = dynamic_ptr_cast<const client::BlockModel>(tparent))) {
+ if ((tparent_block = std::dynamic_pointer_cast<const client::BlockModel>(tparent))) {
if (tparent_block->plugin_uri() == NS_INTERNALS "BlockDelay") {
g_object_set(_gobj, "dash-length", 4.0, nullptr);
set_constraining(false);