summaryrefslogtreecommitdiffstats
path: root/src/Resource.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-19 16:01:07 +0200
committerDavid Robillard <d@drobilla.net>2020-08-01 11:50:43 +0200
commit381c4a77fe5864cd3aed3854b75acf2a52f6a74d (patch)
treee12c428f00b141015c2ad982354fa2fa0f51ddf5 /src/Resource.cpp
parent62cc04f4a703f034cbf81e19b26797e6271801ae (diff)
downloadingen-381c4a77fe5864cd3aed3854b75acf2a52f6a74d.tar.gz
ingen-381c4a77fe5864cd3aed3854b75acf2a52f6a74d.tar.bz2
ingen-381c4a77fe5864cd3aed3854b75acf2a52f6a74d.zip
Add explicit accessors to Quark
Diffstat (limited to 'src/Resource.cpp')
-rw-r--r--src/Resource.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Resource.cpp b/src/Resource.cpp
index fca76572..afd9182a 100644
--- a/src/Resource.cpp
+++ b/src/Resource.cpp
@@ -82,7 +82,7 @@ Resource::set_property(const URI& uri,
const URIs::Quark& value,
Resource::Graph ctx)
{
- return set_property(uri, value.urid, ctx);
+ return set_property(uri, value.urid_atom(), ctx);
}
void
@@ -106,8 +106,8 @@ Resource::remove_property(const URI& uri, const Atom& value)
void
Resource::remove_property(const URI& uri, const URIs::Quark& value)
{
- remove_property(uri, value.urid);
- remove_property(uri, value.uri);
+ remove_property(uri, value.urid_atom());
+ remove_property(uri, value.uri_atom());
}
bool
@@ -196,7 +196,7 @@ Resource::set_properties(const Properties& props)
// Erase existing properties with matching keys
for (const auto& p : props) {
_properties.erase(p.first);
- on_property_removed(p.first, _uris.patch_wildcard.urid);
+ on_property_removed(p.first, _uris.patch_wildcard.urid_atom());
}
// Set new properties