From 296934af365ea347aa94bdc88cf9e12b5e5031e8 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Sat, 19 Nov 2022 17:41:37 -0800 Subject: cleanup: Replace static_cast with runtime cast The runtime cast is defined anyway by the GObject macros, and allows turning runtime checking on or off at build time as desired. --- gjs/stack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gjs/stack.cpp') diff --git a/gjs/stack.cpp b/gjs/stack.cpp index b3d0d9c3..3292eae4 100644 --- a/gjs/stack.cpp +++ b/gjs/stack.cpp @@ -31,7 +31,7 @@ gjs_dumpstack(void) GList *iter; for (iter = contexts; iter; iter = iter->next) { - GjsAutoUnref context(static_cast(iter->data)); + GjsAutoUnref context(GJS_CONTEXT(iter->data)); gjs_context_print_stack_stderr(context); } } -- cgit v1.2.1