diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/engine/Action.cpp | 2 | ||||
-rw-r--r-- | src/engine/Edge.cpp | 2 | ||||
-rw-r--r-- | src/engine/Loader.cpp | 4 | ||||
-rw-r--r-- | 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<Machine>(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) |