diff options
author | David Robillard <d@drobilla.net> | 2020-08-01 16:34:02 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-02 01:48:48 +0200 |
commit | 8a7cc98bd39e95fbdab7bbb8e3e6e4aa351c219b (patch) | |
tree | 8bd1158a4b0ae665e395b14832e3e504e7cf2f7d /src/server/events | |
parent | 6436ce26daefba37c7a612591a33b18365db69b7 (diff) | |
download | ingen-8a7cc98bd39e95fbdab7bbb8e3e6e4aa351c219b.tar.gz ingen-8a7cc98bd39e95fbdab7bbb8e3e6e4aa351c219b.tar.bz2 ingen-8a7cc98bd39e95fbdab7bbb8e3e6e4aa351c219b.zip |
Remove wrappers for standard memory functions
Diffstat (limited to 'src/server/events')
-rw-r--r-- | src/server/events/Copy.cpp | 5 | ||||
-rw-r--r-- | src/server/events/Delete.cpp | 5 |
2 files changed, 6 insertions, 4 deletions
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 <memory> #include <mutex> #include <string> #include <utility> @@ -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<BlockImpl>(i->second))) { + if (!(_old_block = std::dynamic_pointer_cast<BlockImpl>(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<GraphImpl> graph = dynamic_ptr_cast<GraphImpl>(_old_block); + SPtr<GraphImpl> graph = std::dynamic_pointer_cast<GraphImpl>(_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 <cassert> #include <cstddef> +#include <memory> #include <mutex> #include <string> @@ -79,8 +80,8 @@ Delete::pre_process(PreProcessContext& ctx) return Event::pre_process_done(Status::NOT_FOUND, _path); } - if (!(_block = dynamic_ptr_cast<BlockImpl>(iter->second))) { - _port = dynamic_ptr_cast<DuplexPort>(iter->second); + if (!(_block = std::dynamic_pointer_cast<BlockImpl>(iter->second))) { + _port = std::dynamic_pointer_cast<DuplexPort>(iter->second); } if ((!_block && !_port) || (_port && !_engine.driver()->dynamic_ports())) { |