chore: TMethodEventJob, use default for deconstructor
This commit is contained in:
@ -18,7 +18,7 @@ template <class T> class TMethodEventJob : public IEventJob
|
||||
public:
|
||||
//! run(event) invokes \c object->method(event, arg)
|
||||
TMethodEventJob(T *object, void (T::*method)(const Event &, void *), void *arg = nullptr);
|
||||
~TMethodEventJob() override;
|
||||
~TMethodEventJob() override = default;
|
||||
|
||||
// IJob overrides
|
||||
void run(const Event &) override;
|
||||
@ -38,11 +38,6 @@ inline TMethodEventJob<T>::TMethodEventJob(T *object, void (T::*method)(const Ev
|
||||
// do nothing
|
||||
}
|
||||
|
||||
template <class T> inline TMethodEventJob<T>::~TMethodEventJob()
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
|
||||
template <class T> inline void TMethodEventJob<T>::run(const Event &event)
|
||||
{
|
||||
if (m_object != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user