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/server/events/Copy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/events') diff --git a/src/server/events/Copy.cpp b/src/server/events/Copy.cpp index a49fa3e4..dbe57dc0 100644 --- a/src/server/events/Copy.cpp +++ b/src/server/events/Copy.cpp @@ -144,7 +144,7 @@ bool Copy::engine_to_filesystem(PreProcessContext&) { // Ensure source is a graph - SPtr graph = std::dynamic_pointer_cast(_old_block); + auto graph = std::dynamic_pointer_cast(_old_block); if (!graph) { return Event::pre_process_done(Status::BAD_OBJECT_TYPE, _msg.old_uri); } -- cgit v1.2.1