diff options
Diffstat (limited to 'src/Serialiser.cpp')
-rw-r--r-- | src/Serialiser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Serialiser.cpp b/src/Serialiser.cpp index 36d4a87f..858e7f2d 100644 --- a/src/Serialiser.cpp +++ b/src/Serialiser.cpp @@ -557,7 +557,7 @@ Serialiser::Impl::serialise_properties(Sord::Node id, const Sord::URI key(_model->world(), p.first); if (!skip_property(_world.uris(), key)) { if (p.second.type() == _world.uris().atom_URI && - !strncmp((const char*)p.second.get_body(), "ingen:/main/", 13)) { + !strncmp(p.second.ptr<char>(), "ingen:/main/", 13)) { /* Value is a graph URI relative to the running engine. Chop the prefix and save the path relative to the graph file. This allows saving references to bundle resources. */ @@ -565,12 +565,12 @@ Serialiser::Impl::serialise_properties(Sord::Node id, sord_node_to_serd_node(id.c_obj()), sord_node_to_serd_node(key.c_obj()), p.second.type(), p.second.size(), - (const char*)p.second.get_body() + 13); + p.second.ptr<char>() + 13); } else { sratom_write(_sratom, unmap, 0, sord_node_to_serd_node(id.c_obj()), sord_node_to_serd_node(key.c_obj()), - p.second.type(), p.second.size(), p.second.get_body()); + p.second.type(), p.second.size(), p.second.body()); } } } |