diff options
author | David Robillard <d@drobilla.net> | 2017-12-18 00:45:27 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-01-12 18:20:04 +0100 |
commit | 8c19e157e148efb59d6ea2f815783755b6075c7e (patch) | |
tree | 094a95326138dd3a46cbd52b84981e36faebc64a /src/Serialiser.cpp | |
parent | 967a8b9d6690a5ece385d07af04c322d645de23f (diff) | |
download | ingen-8c19e157e148efb59d6ea2f815783755b6075c7e.tar.gz ingen-8c19e157e148efb59d6ea2f815783755b6075c7e.tar.bz2 ingen-8c19e157e148efb59d6ea2f815783755b6075c7e.zip |
Rename Atom::get_body to Atom::body and use Atom::ptr consistently
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()); } } } |