diff options
author | David Robillard <d@drobilla.net> | 2024-10-06 14:38:19 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-10-11 14:10:27 -0400 |
commit | 0a2de34d4fdcedf87e101a309aaa180fcdf18fcc (patch) | |
tree | 3932ab3a3ccea5b5dd56527afe5f046a83cc3f8c /src/world.c | |
parent | a07a8818f22bfa6b467093f1efd287e86983fdf1 (diff) | |
download | lilv-0a2de34d4fdcedf87e101a309aaa180fcdf18fcc.tar.gz lilv-0a2de34d4fdcedf87e101a309aaa180fcdf18fcc.tar.bz2 lilv-0a2de34d4fdcedf87e101a309aaa180fcdf18fcc.zip |
Add missing const qualifiers
Diffstat (limited to 'src/world.c')
-rw-r--r-- | src/world.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/world.c b/src/world.c index b6bdf85..d4d7f8b 100644 --- a/src/world.c +++ b/src/world.c @@ -391,7 +391,7 @@ lilv_collection_find_by_uri(const ZixTree* seq, const LilvNode* uri) struct LilvHeader* lilv_collection_get_by_uri(const ZixTree* seq, const LilvNode* uri) { - ZixTreeIter* const i = lilv_collection_find_by_uri(seq, uri); + const ZixTreeIter* const i = lilv_collection_find_by_uri(seq, uri); return i ? (struct LilvHeader*)zix_tree_get(i) : NULL; } @@ -688,10 +688,10 @@ load_plugin_model(LilvWorld* world, const LilvNode* plugin_uri) { // Create model and reader for loading into it - SordNode* bundle_node = bundle_uri->node; - SordModel* model = sord_new(world->world, SORD_SPO | SORD_OPS, false); - SerdEnv* env = serd_env_new(sord_node_to_serd_node(bundle_node)); - SerdReader* reader = sord_new_reader(model, env, SERD_TURTLE, NULL); + const SordNode* bundle_node = bundle_uri->node; + SordModel* model = sord_new(world->world, SORD_SPO | SORD_OPS, false); + SerdEnv* env = serd_env_new(sord_node_to_serd_node(bundle_node)); + SerdReader* reader = sord_new_reader(model, env, SERD_TURTLE, NULL); // Load manifest LilvNode* manifest_uri = lilv_world_get_manifest_uri(world, bundle_uri); @@ -723,7 +723,7 @@ load_plugin_model(LilvWorld* world, } static LilvVersion -get_version(LilvWorld* world, SordModel* model, const LilvNode* subject) +get_version(const LilvWorld* world, SordModel* model, const LilvNode* subject) { const SordNode* minor_node = sord_get(model, subject->node, world->uris.lv2_minorVersion, NULL, NULL); @@ -1014,7 +1014,8 @@ lilv_world_load_specifications(LilvWorld* world) { for (LilvSpec* spec = world->specs; spec; spec = spec->next) { LILV_FOREACH (nodes, f, spec->data_uris) { - LilvNode* file = (LilvNode*)lilv_collection_get(spec->data_uris, f); + const LilvNode* file = + (const LilvNode*)lilv_collection_get(spec->data_uris, f); lilv_world_load_graph(world, NULL, file); } } |