summaryrefslogtreecommitdiffstats
path: root/src/gui/ConnectWindow.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-01-12 23:38:03 +0000
committerDavid Robillard <d@drobilla.net>2013-01-12 23:38:03 +0000
commitdf1447c665e6c3631961297a9d3e9aff4e94c47f (patch)
treec0ff117c362e6d571f430f886ab62f372b59af08 /src/gui/ConnectWindow.cpp
parentbb335dca695273622b7a4ebbefbe9e089edb9ab4 (diff)
downloadingen-df1447c665e6c3631961297a9d3e9aff4e94c47f.tar.gz
ingen-df1447c665e6c3631961297a9d3e9aff4e94c47f.tar.bz2
ingen-df1447c665e6c3631961297a9d3e9aff4e94c47f.zip
Remove Raul::SharedPtr and switch to std::shared_ptr.
Use project local short type aliases for shared_ptr and friends. Move Raul::Disposable and Raul::Manageable into Raul::Maid. Use sets to store machina nodes and edges to avoid O(n) searches. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4939 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/ConnectWindow.cpp')
-rw-r--r--src/gui/ConnectWindow.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/ConnectWindow.cpp b/src/gui/ConnectWindow.cpp
index ab889461..ca4836b7 100644
--- a/src/gui/ConnectWindow.cpp
+++ b/src/gui/ConnectWindow.cpp
@@ -82,11 +82,11 @@ ConnectWindow::start(App& app, Ingen::World* world)
}
set_connected_to(world->interface());
- connect(world->interface());
+ connect(bool(world->interface()));
}
void
-ConnectWindow::set_connected_to(SharedPtr<Ingen::Interface> engine)
+ConnectWindow::set_connected_to(SPtr<Ingen::Interface> engine)
{
_app->world()->set_interface(engine);
@@ -174,9 +174,9 @@ ConnectWindow::connect(bool existing)
uri = world->interface()->uri();
}
- SharedPtr<ThreadedSigClientInterface> tsci;
+ SPtr<ThreadedSigClientInterface> tsci;
if (world->interface()) {
- tsci = PtrCast<ThreadedSigClientInterface>(
+ tsci = dynamic_ptr_cast<ThreadedSigClientInterface>(
world->interface()->respondee());
}
@@ -200,7 +200,7 @@ ConnectWindow::connect(bool existing)
if (Raul::Process::launch(cmd)) {
const Raul::URI engine_uri(string("tcp://localhost:") + port_str);
- SharedPtr<ThreadedSigClientInterface> tsci(new ThreadedSigClientInterface(1024));
+ SPtr<ThreadedSigClientInterface> tsci(new ThreadedSigClientInterface(1024));
world->set_interface(world->new_interface(engine_uri, tsci));
_app->attach(tsci);
@@ -221,7 +221,7 @@ ConnectWindow::connect(bool existing)
world->engine()->activate();
}
- SharedPtr<SigClientInterface> client(new SigClientInterface());
+ SPtr<SigClientInterface> client(new SigClientInterface());
world->interface()->set_respondee(client);
_app->attach(client);
@@ -239,7 +239,7 @@ ConnectWindow::disconnect()
_attached = false;
_app->detach();
- set_connected_to(SharedPtr<Ingen::Interface>());
+ set_connected_to(SPtr<Ingen::Interface>());
if (!_widgets_loaded)
return;
@@ -418,7 +418,7 @@ ConnectWindow::gtk_callback()
++_connect_stage;
} else if (_connect_stage == 3) {
if (_app->store()->size() > 0) {
- SharedPtr<const GraphModel> root = PtrCast<const GraphModel>(
+ SPtr<const GraphModel> root = dynamic_ptr_cast<const GraphModel>(
_app->store()->object(Raul::Path("/")));
if (root) {
set_connected_to(_app->interface());