summaryrefslogtreecommitdiffstats
path: root/src/libs/client/PatchLibrarian.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-06-12 01:13:38 +0000
committerDavid Robillard <d@drobilla.net>2006-06-12 01:13:38 +0000
commit699d3265031702602bdf4d6748b43ff14f2af72f (patch)
treed0b2e4c0a1f61ad968e9aa9b20bcedcf076a821e /src/libs/client/PatchLibrarian.cpp
parent190e2cf3c91f8bd5b1a6f69d00e84a108c743898 (diff)
downloadingen-699d3265031702602bdf4d6748b43ff14f2af72f.tar.gz
ingen-699d3265031702602bdf4d6748b43ff14f2af72f.tar.bz2
ingen-699d3265031702602bdf4d6748b43ff14f2af72f.zip
Connections working through Store model/signal interface
git-svn-id: http://svn.drobilla.net/lad/grauph@30 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/PatchLibrarian.cpp')
-rw-r--r--src/libs/client/PatchLibrarian.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libs/client/PatchLibrarian.cpp b/src/libs/client/PatchLibrarian.cpp
index 5c8619f5..532f512b 100644
--- a/src/libs/client/PatchLibrarian.cpp
+++ b/src/libs/client/PatchLibrarian.cpp
@@ -273,11 +273,11 @@ PatchLibrarian::save_patch(PatchModel* patch_model, const string& filename, bool
// Save connections
- const list<ConnectionModel*>& cl = patch_model->connections();
+ const list<CountedPtr<ConnectionModel> >& cl = patch_model->connections();
const ConnectionModel* c = NULL;
- for (list<ConnectionModel*>::const_iterator i = cl.begin(); i != cl.end(); ++i) {
- c = (*i);
+ for (list<CountedPtr<ConnectionModel> >::const_iterator i = cl.begin(); i != cl.end(); ++i) {
+ c = (*i).get();
xml_node = xmlNewChild(xml_root_node, NULL, (xmlChar*)"connection", NULL);
xml_child_node = xmlNewChild(xml_node, NULL, (xmlChar*)"source-node",
(xmlChar*)c->src_port_path().parent().name().c_str());