diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2022-11-19 17:41:37 -0800 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2023-03-04 23:40:32 -0800 |
commit | 296934af365ea347aa94bdc88cf9e12b5e5031e8 (patch) | |
tree | dcbe118867bda47b43ba7f73ec9d98fde2053b87 /gjs/profiler.cpp | |
parent | 12de7257e2923c5285614d51f06d751ebc0c60a8 (diff) | |
download | gjs-296934af365ea347aa94bdc88cf9e12b5e5031e8.tar.gz |
cleanup: Replace static_cast<GjsContext*> 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.
Diffstat (limited to 'gjs/profiler.cpp')
-rw-r--r-- | gjs/profiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<GjsContext *>(data); + GjsContext* context = GJS_CONTEXT(data); GjsProfiler *current_profiler = gjs_context_get_profiler(context); if (current_profiler) { |