From 5c53d91c257dd330be0833a9f0615fff07543a6e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 18 May 2011 03:25:00 +0000 Subject: Update for new Serd and Sord APIs. git-svn-id: http://svn.drobilla.net/lad/trunk/machina@3277 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/Loader.cpp | 4 ++-- src/gui/MachinaGUI.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/engine/Loader.cpp b/src/engine/Loader.cpp index a9d8fb2..b2c56e5 100644 --- a/src/engine/Loader.cpp +++ b/src/engine/Loader.cpp @@ -73,8 +73,8 @@ Loader::load(const Glib::ustring& uri) Created created; Sord::Model model(_rdf_world, document_uri); - SerdEnv* env = serd_env_new(); - model.load_file(env, document_uri); + SerdEnv* env = serd_env_new(NULL); + model.load_file(env, SERD_TURTLE, document_uri); serd_env_free(env); Sord::Node nil; diff --git a/src/gui/MachinaGUI.cpp b/src/gui/MachinaGUI.cpp index 8565c59..d4c4841 100644 --- a/src/gui/MachinaGUI.cpp +++ b/src/gui/MachinaGUI.cpp @@ -435,7 +435,7 @@ MachinaGUI::menu_file_save() Sord::Model model(_engine->rdf_world(), _save_uri); _engine->machine()->write_state(model); - model.write_to_file(_save_uri, "turtle"); + model.write_to_file(_save_uri, SERD_TURTLE); } } @@ -486,7 +486,7 @@ MachinaGUI::menu_file_save_as() _save_uri = uri; Sord::Model model(_engine->rdf_world(), _save_uri); _engine->machine()->write_state(model); - model.write_to_file(_save_uri, "turtle"); + model.write_to_file(_save_uri, SERD_TURTLE); } } } -- cgit v1.2.1