chore: FunctionEventJob, use default for deconstructor

This commit is contained in:
sithlord48 2025-04-30 21:57:29 -04:00 committed by Nick Bolton
parent ada495c681
commit 7d27031723
2 changed files with 1 additions and 6 deletions

View file

@ -16,11 +16,6 @@ FunctionEventJob::FunctionEventJob(void (*func)(const Event &, void *), void *ar
// do nothing // do nothing
} }
FunctionEventJob::~FunctionEventJob()
{
// do nothing
}
void FunctionEventJob::run(const Event &event) void FunctionEventJob::run(const Event &event)
{ {
if (m_func != nullptr) { if (m_func != nullptr) {

View file

@ -18,7 +18,7 @@ class FunctionEventJob : public IEventJob
public: public:
//! run() invokes \c func(arg) //! run() invokes \c func(arg)
FunctionEventJob(void (*func)(const Event &, void *), void *arg = nullptr); FunctionEventJob(void (*func)(const Event &, void *), void *arg = nullptr);
~FunctionEventJob() override; ~FunctionEventJob() override = default;
// IEventJob overrides // IEventJob overrides
void run(const Event &) override; void run(const Event &) override;