diff options
author | David Robillard <d@drobilla.net> | 2011-05-18 03:25:00 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-18 03:25:00 +0000 |
commit | 5c53d91c257dd330be0833a9f0615fff07543a6e (patch) | |
tree | 11be6249bb0fe075d5ac430d349eaea5cd9b5276 | |
parent | 7e9d76aa7165eebb998fb9f2533de6c9d39d06c5 (diff) | |
download | machina-5c53d91c257dd330be0833a9f0615fff07543a6e.tar.gz machina-5c53d91c257dd330be0833a9f0615fff07543a6e.tar.bz2 machina-5c53d91c257dd330be0833a9f0615fff07543a6e.zip |
Update for new Serd and Sord APIs.
git-svn-id: http://svn.drobilla.net/lad/trunk/machina@3277 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/engine/Loader.cpp | 4 | ||||
-rw-r--r-- | src/gui/MachinaGUI.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
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); } } } |