summaryrefslogtreecommitdiffstats
path: root/src/gui/App.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-01 16:46:54 +0200
committerDavid Robillard <d@drobilla.net>2020-08-02 01:48:48 +0200
commit95ceaf902f95baa431cdda972c0ebb48293e2022 (patch)
treecb4b6ba1e36c3da09baec85475d118cb523b32c1 /src/gui/App.cpp
parent8a7cc98bd39e95fbdab7bbb8e3e6e4aa351c219b (diff)
downloadingen-95ceaf902f95baa431cdda972c0ebb48293e2022.tar.gz
ingen-95ceaf902f95baa431cdda972c0ebb48293e2022.tar.bz2
ingen-95ceaf902f95baa431cdda972c0ebb48293e2022.zip
Use std::make_shared
Diffstat (limited to 'src/gui/App.cpp')
-rw-r--r--src/gui/App.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/App.cpp b/src/gui/App.cpp
index 49ac2cae..49e3bb67 100644
--- a/src/gui/App.cpp
+++ b/src/gui/App.cpp
@@ -171,18 +171,18 @@ App::attach(const SPtr<ingen::Interface>& client)
}
_client = client;
- _store = SPtr<ClientStore>(new ClientStore(_world.uris(), _world.log(), sig_client()));
- _loader = SPtr<ThreadedLoader>(new ThreadedLoader(*this, _world.interface()));
+ _store = std::make_shared<ClientStore>(_world.uris(), _world.log(), sig_client());
+ _loader = std::make_shared<ThreadedLoader>(*this, _world.interface());
if (!_world.store()) {
_world.set_store(_store);
}
if (_world.conf().option("dump").get<int32_t>()) {
- _dumper = SPtr<StreamWriter>(new StreamWriter(_world.uri_map(),
- _world.uris(),
- URI("ingen:/client"),
- stderr,
- ColorContext::Color::CYAN));
+ _dumper = std::make_shared<StreamWriter>(_world.uri_map(),
+ _world.uris(),
+ URI("ingen:/client"),
+ stderr,
+ ColorContext::Color::CYAN);
sig_client()->signal_message().connect(
sigc::mem_fun(*_dumper.get(), &StreamWriter::message));