summaryrefslogtreecommitdiffstats
path: root/src/serialisation/Serialiser.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-15 23:00:35 +0000
committerDavid Robillard <d@drobilla.net>2011-02-15 23:00:35 +0000
commitdfc8a81f3aa70e2248b40867e1e897b197492210 (patch)
tree59b8b5cde05da34a273205db9eec7daa935097c4 /src/serialisation/Serialiser.cpp
parentee2f8f0db18f5ec80a2bd29b2ee402c0d5773e40 (diff)
downloadingen-dfc8a81f3aa70e2248b40867e1e897b197492210.tar.gz
ingen-dfc8a81f3aa70e2248b40867e1e897b197492210.tar.bz2
ingen-dfc8a81f3aa70e2248b40867e1e897b197492210.zip
Trim more redlandmm API.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2952 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/serialisation/Serialiser.cpp')
-rw-r--r--src/serialisation/Serialiser.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/serialisation/Serialiser.cpp b/src/serialisation/Serialiser.cpp
index bc6b317a..b3541bd3 100644
--- a/src/serialisation/Serialiser.cpp
+++ b/src/serialisation/Serialiser.cpp
@@ -106,7 +106,6 @@ Serialiser::write_manifest(const std::string& bundle_uri,
const string bundle_path(Glib::filename_from_uri(bundle_uri));
const string filename(Glib::build_filename(bundle_path, "manifest.ttl"));
start_to_filename(filename);
- _model->set_base_uri(bundle_uri);
for (Records::const_iterator i = records.begin(); i != records.end(); ++i) {
SharedPtr<Patch> patch = PtrCast<Patch>(i->object);
if (patch) {
@@ -187,8 +186,7 @@ Serialiser::start_to_filename(const string& filename)
_base_uri = "file://" + filename;
else
_base_uri = filename;
- _model = new Redland::Model(*_world.rdf_world());
- _model->set_base_uri(_base_uri);
+ _model = new Redland::Model(*_world.rdf_world(), _base_uri);
_mode = TO_FILE;
}
@@ -210,8 +208,7 @@ Serialiser::start_to_string(const Raul::Path& root, const string& base_uri)
_root_path = root;
_base_uri = base_uri;
- _model = new Redland::Model(*_world.rdf_world());
- _model->set_base_uri(base_uri);
+ _model = new Redland::Model(*_world.rdf_world(), base_uri);
_mode = TO_STRING;
}