aboutsummaryrefslogtreecommitdiffstats
path: root/include/lv2/atom/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lv2/atom/util.h')
-rw-r--r--include/lv2/atom/util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/lv2/atom/util.h b/include/lv2/atom/util.h
index 32e8b6a..3cf2164 100644
--- a/include/lv2/atom/util.h
+++ b/include/lv2/atom/util.h
@@ -329,12 +329,12 @@ lv2_atom_object_query(const LV2_Atom_Object* object,
int n_queries = 0;
/* Count number of query keys so we can short-circuit when done */
- for (LV2_Atom_Object_Query* q = query; q->key; ++q) {
+ for (const LV2_Atom_Object_Query* q = query; q->key; ++q) {
++n_queries;
}
LV2_ATOM_OBJECT_FOREACH (object, prop) {
- for (LV2_Atom_Object_Query* q = query; q->key; ++q) {
+ for (const LV2_Atom_Object_Query* q = query; q->key; ++q) {
if (q->key == prop->key && !*q->value) {
*q->value = &prop->value;
if (++matches == n_queries) {