From 8a7cc98bd39e95fbdab7bbb8e3e6e4aa351c219b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 1 Aug 2020 16:34:02 +0200 Subject: Remove wrappers for standard memory functions --- src/server/events/Copy.cpp | 5 +++-- src/server/events/Delete.cpp | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src/server/events') diff --git a/src/server/events/Copy.cpp b/src/server/events/Copy.cpp index 5418af4b..a49fa3e4 100644 --- a/src/server/events/Copy.cpp +++ b/src/server/events/Copy.cpp @@ -28,6 +28,7 @@ #include "ingen/World.hpp" #include "raul/Path.hpp" +#include #include #include #include @@ -63,7 +64,7 @@ Copy::pre_process(PreProcessContext& ctx) } // Ensure it is a block (ports are not supported for now) - if (!(_old_block = dynamic_ptr_cast(i->second))) { + if (!(_old_block = std::dynamic_pointer_cast(i->second))) { return Event::pre_process_done(Status::BAD_OBJECT_TYPE, old_path); } @@ -143,7 +144,7 @@ bool Copy::engine_to_filesystem(PreProcessContext&) { // Ensure source is a graph - SPtr graph = dynamic_ptr_cast(_old_block); + SPtr graph = std::dynamic_pointer_cast(_old_block); if (!graph) { return Event::pre_process_done(Status::BAD_OBJECT_TYPE, _msg.old_uri); } diff --git a/src/server/events/Delete.cpp b/src/server/events/Delete.cpp index f5f2e272..e91ab5ef 100644 --- a/src/server/events/Delete.cpp +++ b/src/server/events/Delete.cpp @@ -36,6 +36,7 @@ #include #include +#include #include #include @@ -79,8 +80,8 @@ Delete::pre_process(PreProcessContext& ctx) return Event::pre_process_done(Status::NOT_FOUND, _path); } - if (!(_block = dynamic_ptr_cast(iter->second))) { - _port = dynamic_ptr_cast(iter->second); + if (!(_block = std::dynamic_pointer_cast(iter->second))) { + _port = std::dynamic_pointer_cast(iter->second); } if ((!_block && !_port) || (_port && !_engine.driver()->dynamic_ports())) { -- cgit v1.2.1