From fc8d0597a1ec0a1e2fcfd75adff7e2e9f5ba8c30 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 29 Nov 2020 18:06:13 +0100 Subject: Remove unnecessary use of shared_ptr --- src/Patchage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Patchage.cpp') diff --git a/src/Patchage.cpp b/src/Patchage.cpp index 1e057bd..94dfd34 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -159,7 +159,8 @@ Patchage::Patchage(Options options) , _pane_initialized(false) , _attach(true) { - _canvas = std::make_shared(_connector, 1600 * 2, 1200 * 2); + _canvas = std::unique_ptr{ + new PatchageCanvas(_connector, 1600 * 2, 1200 * 2)}; Glib::set_application_name("Patchage"); _about_win->property_program_name() = "Patchage"; -- cgit v1.2.1