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/text.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/text.c') diff --git a/src/core/text.c b/src/core/text.c index b73e86d..f63fabe 100644 --- a/src/core/text.c +++ b/src/core/text.c @@ -20,7 +20,7 @@ #include "utils/utils.h" /* The virtual table for dom_text */ -struct dom_text_vtable text_vtable = { +const struct dom_text_vtable text_vtable = { { { { @@ -33,7 +33,7 @@ struct dom_text_vtable text_vtable = { DOM_TEXT_VTABLE }; -static struct dom_node_protect_vtable text_protect_vtable = { +static const struct dom_node_protect_vtable text_protect_vtable = { DOM_TEXT_PROTECT_VTABLE }; -- cgit v1.2.3