From 88512a34780d336e8d5a2889edb30df18a0c0681 Mon Sep 17 00:00:00 2001 From: vargheseg <vargheseg@users.noreply.github.com> Date: Tue, 6 Nov 2018 16:01:07 +0100 Subject: [PATCH] Switch to Application::getInstance. Do not rely on EntityOwner for accessig Application object. --- Modules/include/PeriodicTrigger.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Modules/include/PeriodicTrigger.h b/Modules/include/PeriodicTrigger.h index 84f6dca8..809d04a6 100644 --- a/Modules/include/PeriodicTrigger.h +++ b/Modules/include/PeriodicTrigger.h @@ -30,10 +30,8 @@ namespace ChimeraTK { } void mainLoop() { - if (auto application = dynamic_cast<Application *>(getOwner())) { - if (application->isTestableModeEnabled()) { - return; - } + if (Application::getInstance().isTestableModeEnabled()) { + return; } tick = 0; std::chrono::time_point<std::chrono::steady_clock> t = std::chrono::steady_clock::now(); -- GitLab