chore: FunctionEventJob, use default for deconstructor
This commit is contained in:
parent
ada495c681
commit
7d27031723
2 changed files with 1 additions and 6 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue