From 7d270317236eb5601f9d7f4c3577f6c629e5aa7c Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Wed, 30 Apr 2025 21:57:29 -0400 Subject: [PATCH] chore: FunctionEventJob, use default for deconstructor --- src/lib/base/FunctionEventJob.cpp | 5 ----- src/lib/base/FunctionEventJob.h | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/lib/base/FunctionEventJob.cpp b/src/lib/base/FunctionEventJob.cpp index d4fd7018f..a7ef96e5e 100644 --- a/src/lib/base/FunctionEventJob.cpp +++ b/src/lib/base/FunctionEventJob.cpp @@ -16,11 +16,6 @@ FunctionEventJob::FunctionEventJob(void (*func)(const Event &, void *), void *ar // do nothing } -FunctionEventJob::~FunctionEventJob() -{ - // do nothing -} - void FunctionEventJob::run(const Event &event) { if (m_func != nullptr) { diff --git a/src/lib/base/FunctionEventJob.h b/src/lib/base/FunctionEventJob.h index bf3304bec..cd8b514fa 100644 --- a/src/lib/base/FunctionEventJob.h +++ b/src/lib/base/FunctionEventJob.h @@ -18,7 +18,7 @@ class FunctionEventJob : public IEventJob public: //! run() invokes \c func(arg) FunctionEventJob(void (*func)(const Event &, void *), void *arg = nullptr); - ~FunctionEventJob() override; + ~FunctionEventJob() override = default; // IEventJob overrides void run(const Event &) override;