summaryrefslogtreecommitdiffstats
path: root/src/Patchage.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-29 18:06:13 +0100
committerDavid Robillard <d@drobilla.net>2020-11-29 18:06:13 +0100
commitfc8d0597a1ec0a1e2fcfd75adff7e2e9f5ba8c30 (patch)
treecfc765a6a5f456fe6e701f0438fc33955dde394d /src/Patchage.cpp
parentb848d9ccbd94f88e3b1b9f1884a05efcea377dfc (diff)
downloadpatchage-fc8d0597a1ec0a1e2fcfd75adff7e2e9f5ba8c30.tar.gz
patchage-fc8d0597a1ec0a1e2fcfd75adff7e2e9f5ba8c30.tar.bz2
patchage-fc8d0597a1ec0a1e2fcfd75adff7e2e9f5ba8c30.zip
Remove unnecessary use of shared_ptr
Diffstat (limited to 'src/Patchage.cpp')
-rw-r--r--src/Patchage.cpp3
1 files changed, 2 insertions, 1 deletions
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<PatchageCanvas>(_connector, 1600 * 2, 1200 * 2);
+ _canvas = std::unique_ptr<PatchageCanvas>{
+ new PatchageCanvas(_connector, 1600 * 2, 1200 * 2)};
Glib::set_application_name("Patchage");
_about_win->property_program_name() = "Patchage";