From 9d10e002f998f560bcaba2aadbc858539f01e6a5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 17 Dec 2010 04:22:00 +0000 Subject: Fix serialisation (fix ticket #508). git-svn-id: http://svn.drobilla.net/lad/trunk/machina@2735 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/Action.cpp | 2 +- src/engine/Edge.cpp | 2 +- src/engine/Loader.cpp | 4 ++-- src/engine/Node.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/engine/Action.cpp b/src/engine/Action.cpp index 1f31bbe..e11810c 100644 --- a/src/engine/Action.cpp +++ b/src/engine/Action.cpp @@ -26,7 +26,7 @@ Action::write_state(Redland::Model& model) { using namespace Raul; - if (!_id) + if (!_id.is_valid()) set_id(model.world().blank_id()); model.add_statement(_id, diff --git a/src/engine/Edge.cpp b/src/engine/Edge.cpp index 87d708f..6bef290 100644 --- a/src/engine/Edge.cpp +++ b/src/engine/Edge.cpp @@ -30,7 +30,7 @@ Edge::write_state(Redland::Model& model) { using namespace Raul; - if (!_id) + if (!_id.is_valid()) set_id(model.world().blank_id()); model.add_statement(_id, diff --git a/src/engine/Loader.cpp b/src/engine/Loader.cpp index fa05fd0..a899fce 100644 --- a/src/engine/Loader.cpp +++ b/src/engine/Loader.cpp @@ -71,9 +71,9 @@ Loader::load(const Glib::ustring& uri) } } - const string machine_uri = string("<") + document_uri + ">"; + const string machine_uri = string("<>"); - cout << "[Loader] Loading " << machine_uri << " from " << document_uri << endl; + cout << "[Loader] Loading " << document_uri << endl; machine = SharedPtr(new Machine(TimeUnit::beats(MACHINA_PPQN))); diff --git a/src/engine/Node.cpp b/src/engine/Node.cpp index c5a9192..3f61121 100644 --- a/src/engine/Node.cpp +++ b/src/engine/Node.cpp @@ -209,7 +209,7 @@ Node::write_state(Redland::Model& model) { using namespace Raul; - if (!_id) + if (!_id.is_valid()) set_id(model.world().blank_id()); if (_is_selector) -- cgit v1.2.1