aboutsummaryrefslogtreecommitdiffstats
path: root/include/lv2/event
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-10-06 13:57:47 -0400
committerDavid Robillard <d@drobilla.net>2024-10-06 13:57:47 -0400
commit5309d0fcc9ef1a01ce9d0e3631ae45eb86a28740 (patch)
treed4b73d4903b3a196a365968a1ab3d3a9ed9849f4 /include/lv2/event
parent447b44c67368a4e1686d1db2688e5624a63cd0f4 (diff)
downloadlv2-5309d0fcc9ef1a01ce9d0e3631ae45eb86a28740.tar.xz
Add missing const qualifiers
Diffstat (limited to 'include/lv2/event')
-rw-r--r--include/lv2/event/event-helpers.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/lv2/event/event-helpers.h b/include/lv2/event/event-helpers.h
index a9eb423..5ec9a84 100644
--- a/include/lv2/event/event-helpers.h
+++ b/include/lv2/event/event-helpers.h
@@ -107,7 +107,8 @@ lv2_event_increment(LV2_Event_Iterator* iter)
return false;
}
- LV2_Event* const ev = (LV2_Event*)(iter->buf->data + iter->offset);
+ const LV2_Event* const ev =
+ (const LV2_Event*)(iter->buf->data + iter->offset);
iter->offset +=
lv2_event_pad_size((uint16_t)((uint16_t)sizeof(LV2_Event) + ev->size));