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/profiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gjs/profiler.cpp') diff --git a/gjs/profiler.cpp b/gjs/profiler.cpp index 39c19621..1a5560f7 100644 --- a/gjs/profiler.cpp +++ b/gjs/profiler.cpp @@ -653,7 +653,7 @@ gjs_profiler_stop(GjsProfiler *self) static gboolean gjs_profiler_sigusr2(void *data) { - auto context = static_cast(data); + GjsContext* context = GJS_CONTEXT(data); GjsProfiler *current_profiler = gjs_context_get_profiler(context); if (current_profiler) { -- cgit v1.2.1