summaryrefslogtreecommitdiffstats
path: root/src/server/events/Copy.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-01 16:34:02 +0200
committerDavid Robillard <d@drobilla.net>2020-08-02 01:48:48 +0200
commit8a7cc98bd39e95fbdab7bbb8e3e6e4aa351c219b (patch)
tree8bd1158a4b0ae665e395b14832e3e504e7cf2f7d /src/server/events/Copy.cpp
parent6436ce26daefba37c7a612591a33b18365db69b7 (diff)
downloadingen-8a7cc98bd39e95fbdab7bbb8e3e6e4aa351c219b.tar.gz
ingen-8a7cc98bd39e95fbdab7bbb8e3e6e4aa351c219b.tar.bz2
ingen-8a7cc98bd39e95fbdab7bbb8e3e6e4aa351c219b.zip
Remove wrappers for standard memory functions
Diffstat (limited to 'src/server/events/Copy.cpp')
-rw-r--r--src/server/events/Copy.cpp5
1 files changed, 3 insertions, 2 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);
}