From a2ffae698d4c12d9457c62b79eddd4342e2e213c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 2 Feb 2021 12:31:20 +0000 Subject: Constify vtables. --- src/core/node.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/node.c') diff --git a/src/core/node.c b/src/core/node.c index b471725..f8b8def 100644 --- a/src/core/node.c +++ b/src/core/node.c @@ -55,14 +55,14 @@ static inline dom_exception _dom_node_detach_range(dom_node_internal *first, static inline void _dom_node_replace(dom_node_internal *old, dom_node_internal *replacement); -static struct dom_node_vtable node_vtable = { +static const struct dom_node_vtable node_vtable = { { DOM_NODE_EVENT_TARGET_VTABLE }, DOM_NODE_VTABLE }; -static struct dom_node_protect_vtable node_protect_vtable = { +static const struct dom_node_protect_vtable node_protect_vtable = { DOM_NODE_PROTECT_VTABLE }; -- cgit v1.2.3