From 5e2f5331c454dcc67b4115bc949eb2d5629cfadf Mon Sep 17 00:00:00 2001 From: Matthias Jung Date: Thu, 9 Oct 2025 12:11:33 +0200 Subject: [PATCH] fix: PASSFUNCTIONDEL --- .../dramTimeDependencies/common/timedependency.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/extensions/apps/traceAnalyzer/businessObjects/dramTimeDependencies/common/timedependency.h b/extensions/apps/traceAnalyzer/businessObjects/dramTimeDependencies/common/timedependency.h index ae24dec3..7f5dca6f 100644 --- a/extensions/apps/traceAnalyzer/businessObjects/dramTimeDependencies/common/timedependency.h +++ b/extensions/apps/traceAnalyzer/businessObjects/dramTimeDependencies/common/timedependency.h @@ -16,16 +16,24 @@ class DBPhaseEntryBase; #define PASSFUNCTIONDECL \ ([[maybe_unused]] const std::shared_ptr thisPhase, \ [[maybe_unused]] const std::shared_ptr otherPhase) + struct PassFunction { - using Fn = std::function; - PassFunction(Fn passFunction) : mPassFn{std::move(passFunction)} {} + using Fn = std::function< + bool(const std::shared_ptr&, + const std::shared_ptr&)>; - bool execute PASSFUNCTIONDECL { return mPassFn(thisPhase, otherPhase); } + explicit PassFunction(Fn passFunction) : mPassFn{std::move(passFunction)} {} + + bool execute PASSFUNCTIONDECL + { + return mPassFn(thisPhase, otherPhase); + } Fn mPassFn; }; + class TimeDependency { public: