summaryrefslogtreecommitdiffstats
path: root/src/gui/ConnectWindow.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-02 15:23:19 +0200
committerDavid Robillard <d@drobilla.net>2020-08-02 15:23:19 +0200
commitbdbdf42f3fe990c713c5437724db39274c387eee (patch)
tree7f921a04fd580da6bcb6fc8975fa2aebfcd93e0f /src/gui/ConnectWindow.cpp
parentec0b87a18623c17c16f6a648fcf277abe14142b7 (diff)
downloadingen-bdbdf42f3fe990c713c5437724db39274c387eee.tar.gz
ingen-bdbdf42f3fe990c713c5437724db39274c387eee.tar.bz2
ingen-bdbdf42f3fe990c713c5437724db39274c387eee.zip
Remove std::shared_ptr alias
Diffstat (limited to 'src/gui/ConnectWindow.cpp')
-rw-r--r--src/gui/ConnectWindow.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/ConnectWindow.cpp b/src/gui/ConnectWindow.cpp
index 3e5e5d7c..1afc8c6c 100644
--- a/src/gui/ConnectWindow.cpp
+++ b/src/gui/ConnectWindow.cpp
@@ -130,7 +130,7 @@ ConnectWindow::ingen_response(int32_t id,
}
void
-ConnectWindow::set_connected_to(const SPtr<ingen::Interface>& engine)
+ConnectWindow::set_connected_to(const std::shared_ptr<ingen::Interface>& engine)
{
_app->world().set_interface(engine);
@@ -196,10 +196,10 @@ ConnectWindow::connect_remote(const URI& uri)
{
ingen::World& world = _app->world();
- SPtr<SigClientInterface> sci(new SigClientInterface());
- SPtr<QueuedInterface> qi(new QueuedInterface(sci));
+ auto sci = std::make_shared<SigClientInterface>();
+ auto qi = std::make_shared<QueuedInterface>(sci);
- SPtr<ingen::Interface> iface(world.new_interface(uri, qi));
+ std::shared_ptr<ingen::Interface> iface(world.new_interface(uri, qi));
if (iface) {
world.set_interface(iface);
_app->attach(qi);
@@ -486,7 +486,7 @@ ConnectWindow::gtk_callback()
if (ms_since_last >= 250) {
last = now;
if (_mode == Mode::INTERNAL) {
- SPtr<SigClientInterface> client(new SigClientInterface());
+ auto client = std::make_shared<SigClientInterface>();
_app->world().interface()->set_respondee(client);
_app->attach(client);
_app->register_callbacks();