summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Patchage.cpp3
-rw-r--r--src/Patchage.hpp4
2 files changed, 4 insertions, 3 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";
diff --git a/src/Patchage.hpp b/src/Patchage.hpp
index 09e55fa..ef0e20a 100644
--- a/src/Patchage.hpp
+++ b/src/Patchage.hpp
@@ -74,7 +74,7 @@ public:
Patchage(Patchage&&) = delete;
Patchage& operator=(Patchage&&) = delete;
- const std::shared_ptr<PatchageCanvas>& canvas() const { return _canvas; }
+ const std::unique_ptr<PatchageCanvas>& canvas() const { return _canvas; }
Gtk::Window* window() { return _main_win.get(); }
ILog& log() { return _log; }
@@ -154,7 +154,7 @@ protected:
std::unique_ptr<Driver> _alsa_driver;
- std::shared_ptr<PatchageCanvas> _canvas;
+ std::unique_ptr<PatchageCanvas> _canvas;
std::unique_ptr<AudioDriver> _jack_driver;
Configuration _conf;