diff options
author | David Robillard <d@drobilla.net> | 2012-04-23 00:18:45 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-23 00:18:45 +0000 |
commit | 034c8948e8fe47b487e17a8dd438f3a9857d571a (patch) | |
tree | 3ea10e8f91f411976b3a31119a660d06508e2c5d /src/serialisation | |
parent | 170b763db7c14be1014268198d6e02769352c5db (diff) | |
download | ingen-034c8948e8fe47b487e17a8dd438f3a9857d571a.tar.gz ingen-034c8948e8fe47b487e17a8dd438f3a9857d571a.tar.bz2 ingen-034c8948e8fe47b487e17a8dd438f3a9857d571a.zip |
Use URI defines where possible.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4244 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/serialisation')
-rw-r--r-- | src/serialisation/Parser.cpp | 2 | ||||
-rw-r--r-- | src/serialisation/Serialiser.cpp | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/serialisation/Parser.cpp b/src/serialisation/Parser.cpp index c2e8be4d..838a0200 100644 --- a/src/serialisation/Parser.cpp +++ b/src/serialisation/Parser.cpp @@ -90,7 +90,7 @@ skip_property(const Sord::Node& predicate) { return (predicate.to_string() == "http://drobilla.net/ns/ingen#node" || predicate.to_string() == "http://drobilla.net/ns/ingen#edge" - || predicate.to_string() == "http://lv2plug.in/ns/lv2core#port"); + || predicate.to_string() == LV2_CORE__port); } static Resource::Properties diff --git a/src/serialisation/Serialiser.cpp b/src/serialisation/Serialiser.cpp index f0062860..c26be7be 100644 --- a/src/serialisation/Serialiser.cpp +++ b/src/serialisation/Serialiser.cpp @@ -40,6 +40,8 @@ #include "ingen/shared/Store.hpp" #include "ingen/shared/URIs.hpp" #include "ingen/shared/World.hpp" +#include "lv2/lv2plug.in/ns/ext/state/state.h" +#include "lv2/lv2plug.in/ns/extensions/ui/ui.h" #include "raul/Atom.hpp" #include "raul/Path.hpp" #include "raul/log.hpp" @@ -342,10 +344,10 @@ Serialiser::Impl::serialise_patch(SharedPtr<const Patch> patch, _model->add_statement(patch_id, Sord::Curie(world, "lv2:extensionData"), - Sord::URI(world, "http://lv2plug.in/ns/ext/state#Interface")); + Sord::URI(world, LV2_STATE__interface)); _model->add_statement(patch_id, - Sord::URI(world, "http://lv2plug.in/ns/extensions/ui#ui"), + Sord::URI(world, LV2_UI__ui), Sord::URI(world, "http://drobilla.net/ns/ingen#ui")); const URIs& uris = *_world.uris().get(); |